Skip to content

Instantly share code, notes, and snippets.

@Kagee
Created March 31, 2012 19:17
Show Gist options
  • Save Kagee/2267659 to your computer and use it in GitHub Desktop.
Save Kagee/2267659 to your computer and use it in GitHub Desktop.
diff --git a/perllib/FixMyStreet/Geocode/Google.pm b/perllib/FixMyStreet/Geocode/Google.pm
index 83b36db..b3beccf 100644
--- a/perllib/FixMyStreet/Geocode/Google.pm
+++ b/perllib/FixMyStreet/Geocode/Google.pm
@@ -75,6 +75,10 @@ sub string {
my $address = $_->{address};
next unless $c->cobrand->geocoded_string_check( $address );
( $longitude, $latitude ) = @{ $_->{Point}->{coordinates} };
+ mySociety::Locale::in_gb_locale {
+ $longitude = "$longitude";
+ $latitude = "$latitude";
+ };
push (@$error, { address => $address, latitude => $latitude, longitude => $longitude });
push (@valid_locations, $_);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment