aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-13 15:41:31 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-13 15:41:31 +0100
commitbced721d43c196fa9ae845d4558c277ef271714b (patch)
tree45bf2393b377859147ce824554b73cc736524b0a /perllib/FixMyStreet/App/Controller/Around.pm
parent11ea462d5d9e542e9b395f1309a2e4378dbc24f0 (diff)
parent75c00e4a2ad9ceeed894a89032bb2d9b160caf10 (diff)
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-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 );