diff options
author | Dave Arter <davea@mysociety.org> | 2020-06-16 19:46:22 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-07-02 14:38:50 +0100 |
commit | 6c975151915204674ec27f5e0c95dfa6f1273523 (patch) | |
tree | 10b2cc9d68fb7e82839f4acbef1e266d9a364c66 /perllib/FixMyStreet/Geocode/OSM.pm | |
parent | 832dd8e367b9c83619981bf9828dea405d15ce02 (diff) |
Allow cobrands to manipulate OSM query params directly
Diffstat (limited to 'perllib/FixMyStreet/Geocode/OSM.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode/OSM.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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; |