diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-15 16:21:46 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-15 16:21:46 +0100 |
commit | b890c304aea2d47f5af42d2abed07611c8343ded (patch) | |
tree | bb6caf60a2550c8132998e9fa9f8c8757dab7a73 | |
parent | 46d4c233ddafb8bfa1b57414981090ae06651fac (diff) |
The Nearby model works in kilometres, not metres.
I think we probably don't care about reports in
John o'Groats when we're in Oxford.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index b31877839..5c64bd9e5 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -481,7 +481,7 @@ sub nearby_json : Private { $c->forward( 'load_problem_or_display_error', [ $id ] ); my $p = $c->stash->{problem}; - my $dist = 1000; + my $dist = 1; my $nearby = $c->model('DB::Nearby')->nearby( $c, $dist, [ $p->id ], 5, $p->latitude, $p->longitude, undef, [ $p->category ], undef |