diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-11 20:11:01 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-11 20:11:01 +0100 |
commit | 9e0b35fe2578d4f885fa89792c450a1ded0006f3 (patch) | |
tree | 8d143781f919e1aab267e9ecc9db25c2873bd276 | |
parent | 2ecaa78941ccba06d25514c43944cedda1cc67dd (diff) |
Apply 79c777f2a to Google geocoder too (thanks for prompt @Kagee).
-rw-r--r-- | perllib/FixMyStreet/Geocode/Google.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/Google.pm b/perllib/FixMyStreet/Geocode/Google.pm index 83b36dbcd..b62c89cda 100644 --- a/perllib/FixMyStreet/Geocode/Google.pm +++ b/perllib/FixMyStreet/Geocode/Google.pm @@ -75,7 +75,13 @@ sub string { my $address = $_->{address}; next unless $c->cobrand->geocoded_string_check( $address ); ( $longitude, $latitude ) = @{ $_->{Point}->{coordinates} }; - push (@$error, { address => $address, latitude => $latitude, longitude => $longitude }); + mySociety::Locale::in_gb_locale { + push (@$error, { + address => $address, + latitude => sprintf('%0.6f', $latitude), + longitude => sprintf('%0.6f', $longitude) + }); + }; push (@valid_locations, $_); } return { latitude => $latitude, longitude => $longitude } if scalar @valid_locations == 1; |