diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-14 20:44:24 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-15 11:46:24 +0000 |
commit | a5bde7c6cd2bca5a8f1dfebdfb0a3040ead1566b (patch) | |
tree | 38827f118e8fceddeba0d4c668f2c5a0de12a8e0 /perllib/FixMyStreet/Geocode/OSM.pm | |
parent | 87b97b272c97f69c2ebec6dfb4935810ebfd3218 (diff) |
Sort geocoder query parameters in URL.
This means there should only be one cache entry per request.
Diffstat (limited to 'perllib/FixMyStreet/Geocode/OSM.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode/OSM.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/OSM.pm b/perllib/FixMyStreet/Geocode/OSM.pm index f165963d7..020be3c2a 100644 --- a/perllib/FixMyStreet/Geocode/OSM.pm +++ b/perllib/FixMyStreet/Geocode/OSM.pm @@ -41,7 +41,7 @@ sub string { if $params->{bounds}; $query_params{countrycodes} = $params->{country} if $params->{country}; - $url .= join('&', map { "$_=$query_params{$_}" } keys %query_params); + $url .= join('&', map { "$_=$query_params{$_}" } sort keys %query_params); my $js = FixMyStreet::Geocode::cache('osm', $url); if (!$js) { |