aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode.pm
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-09-16 17:26:41 +0000
committerHakim Cassimally <hakim@mysociety.org>2014-09-16 17:26:41 +0000
commit8f7fb5624c3b8d82e2f365bc2a6951eebf3a7a99 (patch)
treeda5db5107992227d5b886ceb92e3d7c4d2222edf /perllib/FixMyStreet/Geocode.pm
parent1ca31d093403ce49092ffdbcfacfacee7eb55ba7 (diff)
parent378150a466ccac89855b6035f226bd9aeee4d496 (diff)
Merge branch 'east-sussex-candidate'
Diffstat (limited to 'perllib/FixMyStreet/Geocode.pm')
-rw-r--r--perllib/FixMyStreet/Geocode.pm2
1 files changed, 1 insertions, 1 deletions
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');