aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-13 14:43:40 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-13 14:43:40 +0100
commit2d1bf8628d921f1794415eb8671cdcd8bfee7c58 (patch)
tree577e70490edf4d6a4636c05f12f7e04e2e3b9387
parenta572ea147f3431f9cce5458723fb3ecd6a8de579 (diff)
Truncate co-ords to prevent exponentials appearing too.
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 82d920b3e..d90a46b32 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -90,6 +90,7 @@ sub redirect_en_or_xy_to_latlon : Private {
if ( $x || $y ) {
( $lat, $lon ) = FixMyStreet::Map::tile_xy_to_wgs84( $x, $y );
+ ( $lat, $lon ) = map { Utils::truncate_coordinate($_) } ( $lat, $lon );
}
elsif ( $e || $n ) {
( $lat, $lon ) = Utils::convert_en_to_latlon_truncated( $e, $n );