diff options
author | Dave Whiteland <dave@mysociety.org> | 2012-05-04 16:55:12 +0100 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-05-04 16:55:12 +0100 |
commit | 9f622d77955d6af6560237bd72f63449d443dd17 (patch) | |
tree | 2bfef646499c93007b3b5d874f543564a7ffd93a | |
parent | cac5e38fd088a56096897a5a7a19bea65113fadd (diff) | |
parent | 79c777f2a6e3cd49f227f0ba1feb8f7c5b97fd10 (diff) |
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet
-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, $_); } |