diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2011-09-08 16:11:01 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2011-09-08 16:11:01 +0200 |
commit | b9f549f2e188833ff4550ee2ecbb0f12a9445414 (patch) | |
tree | 1e251ce83be789d1f2b8c0bfba234b1ec68f3d11 /perllib/FixMyStreet | |
parent | b35a27ba34dd96b829284bbd33d22abdb744c35f (diff) |
Use Google API when no API key is set.
Diffstat (limited to 'perllib/FixMyStreet')
-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; |