diff options
author | Marius Halden <marius.h@lden.org> | 2016-06-11 14:12:04 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-06-11 14:12:04 +0200 |
commit | 1307e0674c8b0174f71b960785230c647320885c (patch) | |
tree | 305f74ebeaba78a01f1c0d919e8180941a3ee63d /perllib/FixMyStreet/Map.pm | |
parent | 05310eb3ace46ab71d8d426359f17f5beeb7c115 (diff) | |
parent | 35e58052f4f1250a3c1bb40d126e36fcc735d209 (diff) |
Merge tag 'v1.8.3' into fiksgatami-dev
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r-- | perllib/FixMyStreet/Map.pm | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm index 81b81f656..6d641331f 100644 --- a/perllib/FixMyStreet/Map.pm +++ b/perllib/FixMyStreet/Map.pm @@ -16,7 +16,7 @@ use Module::Pluggable # Get the list of maps we want and load map classes at compile time my @ALL_MAP_CLASSES = allowed_maps(); -use mySociety::Gaze; +use FixMyStreet::Gaze; use mySociety::Locale; use Utils; @@ -105,13 +105,7 @@ sub _map_features { ? $c->cobrand->problems->around_map( @around_args, $around_limit, $category, $states ) : $around_map; - my $dist; - mySociety::Locale::in_gb_locale { - $dist = - mySociety::Gaze::get_radius_containing_population( $lat, $lon, - 200000 ); - }; - $dist = int( $dist * 10 + 0.5 ) / 10; + my $dist = FixMyStreet::Gaze::get_radius_containing_population( $lat, $lon ); my $limit = 20; my @ids = map { $_->id } @$around_map_list; |