diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-17 10:28:00 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-17 10:28:00 +0100 |
commit | 187068789666dee59ea286d5a0c7e2d0cee81173 (patch) | |
tree | 789351bbcf182187cb0deb1f538d5bec03d55fe3 /perllib/FixMyStreet/Geocode/Bing.pm | |
parent | 77f635378e294cc690f7a580966750b32efe98d2 (diff) | |
parent | a9cb80973eaacc79d75cd8edb12009fc88569117 (diff) |
Merge branch 'master' into fmb-read-only
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Bing.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode/Bing.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/Bing.pm b/perllib/FixMyStreet/Geocode/Bing.pm index 4ba00dbfe..a24f7c102 100644 --- a/perllib/FixMyStreet/Geocode/Bing.pm +++ b/perllib/FixMyStreet/Geocode/Bing.pm @@ -69,7 +69,14 @@ sub string { ); ( $latitude, $longitude ) = @{ $_->{point}->{coordinates} }; - push (@$error, { address => $address, latitude => $latitude, longitude => $longitude }); + # These co-ordinates are output as query parameters in a URL, make sure they have a "." + mySociety::Locale::in_gb_locale { + push (@$error, { + address => $address, + latitude => sprintf('%0.6f', $latitude), + longitude => sprintf('%0.6f', $longitude) + }); + }; push (@valid_locations, $_); } |