From 6c975151915204674ec27f5e0c95dfa6f1273523 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Tue, 16 Jun 2020 19:46:22 +0100 Subject: Allow cobrands to manipulate OSM query params directly --- perllib/FixMyStreet/Geocode/OSM.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perllib/FixMyStreet/Geocode/OSM.pm') diff --git a/perllib/FixMyStreet/Geocode/OSM.pm b/perllib/FixMyStreet/Geocode/OSM.pm index 20e653cf6..06162d74c 100644 --- a/perllib/FixMyStreet/Geocode/OSM.pm +++ b/perllib/FixMyStreet/Geocode/OSM.pm @@ -45,6 +45,7 @@ sub string { if $params->{bounds}; $query_params{countrycodes} = $params->{country} if $params->{country}; + $c->cobrand->call_hook(geocoder_munge_query_params => \%query_params); $url .= join('&', map { "$_=$query_params{$_}" } sort keys %query_params); $c->stash->{geocoder_url} = $url; -- cgit v1.2.3