From 378150a466ccac89855b6035f226bd9aeee4d496 Mon Sep 17 00:00:00 2001 From: Hakim Cassimally Date: Fri, 12 Sep 2014 14:11:21 +0000 Subject: Let cobrand override geocoder Fixing issues with Bing geocoding for East Sussex, for example "Church Street". --- perllib/FixMyStreet/Geocode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/Geocode.pm') diff --git a/perllib/FixMyStreet/Geocode.pm b/perllib/FixMyStreet/Geocode.pm index 61c398985..2a318ea5a 100644 --- a/perllib/FixMyStreet/Geocode.pm +++ b/perllib/FixMyStreet/Geocode.pm @@ -35,7 +35,7 @@ sub lookup { sub string { my ($s, $c) = @_; - my $service = $c->config->{GEOCODER}; + my $service = $c->cobrand->get_geocoder($c); $service = $service->{type} if ref $service; $service = 'OSM' unless $service =~ /^(Bing|Google|OSM|Zurich)$/; $service = 'OSM' if $service eq 'Bing' && !FixMyStreet->config('BING_MAPS_API_KEY'); -- cgit v1.2.3