diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-05-02 10:33:36 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-05-02 16:05:17 +0100 |
commit | 1f83e1aec0128a2cc52d220e5eae2c2b2fad5122 (patch) | |
tree | dfb84334cdc163d95e0112ff19ab39739b81bfbc /perllib/FixMyStreet/Script/Reports.pm | |
parent | 6e739457cb294f7c99ce0a5b1132292c8fc352ac (diff) |
Tidy up find_closest* functions.
Allow find_closest to be called multiple times with only one lookup,
and to return just its data, not a compiled string.
Diffstat (limited to 'perllib/FixMyStreet/Script/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/Script/Reports.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm index 6057807de..1e5fd55bb 100644 --- a/perllib/FixMyStreet/Script/Reports.pm +++ b/perllib/FixMyStreet/Script/Reports.pm @@ -98,7 +98,7 @@ sub send(;$) { $h{osm_url} = Utils::OpenStreetMap::short_url($h{latitude}, $h{longitude}); if ( $row->used_map ) { - $h{closest_address} = $cobrand->find_closest( $h{latitude}, $h{longitude}, $row ); + $h{closest_address} = $cobrand->find_closest($row); $h{osm_url} .= '?m'; } |