aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode/Bing.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-17 09:55:33 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-17 09:55:33 +0100
commit2ced346cafb7f6dcdf05d31c670c848d2658d225 (patch)
tree7f9076f2c9454df66518f7394becf9f4a35fb28a /perllib/FixMyStreet/Geocode/Bing.pm
parent8991f2967b4a82c0e6d2b8dcf836f1397d537533 (diff)
parenta9cb80973eaacc79d75cd8edb12009fc88569117 (diff)
Merge branch 'master' into barnet-newstyle
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Bing.pm')
-rw-r--r--perllib/FixMyStreet/Geocode/Bing.pm9
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, $_);
}