diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-04-01 08:06:51 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-04-01 08:06:52 +0100 |
commit | a978974b5770ebc173d302034cbe179a45cb40d5 (patch) | |
tree | 10c9e1721c9d8e8bd15c0ca6b5d8b56752e4d437 /perllib/FixMyStreet/App/Controller/Open311.pm | |
parent | 83bb5ff481d87e4cc4a713d69e3765d2d2c16392 (diff) |
Make sure MapIt generation always used if given.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Open311.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Open311.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Open311.pm b/perllib/FixMyStreet/App/Controller/Open311.pm index 83b9b8202..5d7ec63d6 100644 --- a/perllib/FixMyStreet/App/Controller/Open311.pm +++ b/perllib/FixMyStreet/App/Controller/Open311.pm @@ -164,9 +164,12 @@ sub get_services : Private { if ($lat || $lon) { my $area_types = $c->cobrand->area_types; + my %params = ( type => $area_types ); + $params{generation} = $c->config->{MAPIT_GENERATION} + if $c->config->{MAPIT_GENERATION}; my $all_areas = mySociety::MaPit::call('point', "4326/$lon,$lat", - type => $area_types); + %params); $categories = $categories->search( { 'body_areas.area_id' => [ keys %$all_areas ], }, { join => { 'body' => 'body_areas' } } ); |