diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-01-29 18:41:46 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-29 18:41:46 +0000 |
commit | 178c601f2d1a98649e192a3621067ebe1d3e0939 (patch) | |
tree | a3a027124e78c165681ee58e010834585928c364 /perllib/FixMyStreet/Geocode/Google.pm | |
parent | 445e9a3dabc2069251fb9f298a9427d32ca23532 (diff) |
Fix co-ordinate bug in Google geocoder.
a4b6ed0f put the latitude in $longitude and vice-versa.
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Google.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode/Google.pm | 2 |
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, |