diff options
author | Struan Donald <struan@exo.org.uk> | 2011-10-10 14:50:30 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-10-10 14:50:30 +0100 |
commit | 6e7276b843fde5e0490c3859f4beb92538004c0e (patch) | |
tree | 51bbf37602f6f3c6c83eae8a80e22a5a99c49194 /perllib/FixMyStreet/Geocode.pm | |
parent | a8b2d90c78103024b58b1760db72ab5c9397511b (diff) | |
parent | 5eb4f4e746283b4e945b52745503baa4da4f345f (diff) |
Merge remote branch 'origin/master' into open311-consumer
Diffstat (limited to 'perllib/FixMyStreet/Geocode.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Geocode.pm b/perllib/FixMyStreet/Geocode.pm index d7c416fb5..6ee17029a 100644 --- a/perllib/FixMyStreet/Geocode.pm +++ b/perllib/FixMyStreet/Geocode.pm @@ -41,9 +41,8 @@ sub string { my $params = $c->cobrand->disambiguate_location(); return FixMyStreet::Geocode::Bing::string($s, $c, $params) if FixMyStreet->config('BING_MAPS_API_KEY'); - return FixMyStreet::Geocode::Google::string($s, $c, $params) - if FixMyStreet->config('GOOGLE_MAPS_API_KEY'); - die "No geocoding provider configured"; + # Fall back to Google API, which allow acces with and without a key + return FixMyStreet::Geocode::Google::string($s, $c, $params); } 1; |