aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-29 18:41:46 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-29 18:41:46 +0000
commit178c601f2d1a98649e192a3621067ebe1d3e0939 (patch)
treea3a027124e78c165681ee58e010834585928c364 /perllib
parent445e9a3dabc2069251fb9f298a9427d32ca23532 (diff)
Fix co-ordinate bug in Google geocoder.
a4b6ed0f put the latitude in $longitude and vice-versa.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Geocode/Google.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/Google.pm b/perllib/FixMyStreet/Geocode/Google.pm
index 5261bb7e4..e64d02c4c 100644
--- a/perllib/FixMyStreet/Geocode/Google.pm
+++ b/perllib/FixMyStreet/Geocode/Google.pm
@@ -53,7 +53,7 @@ sub string {
next unless $c->cobrand->geocoded_string_check( $address );
( $longitude, $latitude ) =
map { Utils::truncate_coordinate($_) }
- ($_->{geometry}{location}{lat}, $_->{geometry}{location}{lng});
+ ($_->{geometry}{location}{lng}, $_->{geometry}{location}{lat});
push (@$error, {
address => $address,
latitude => $latitude,