aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-09-09 17:37:23 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-09-09 17:37:23 +0100
commitafa937984e3b3213c2e7b6e3607deec5c83800db (patch)
treec394ef9a69b160fd46eeb908524848092e1bb659 /perllib/FixMyStreet/Geocode.pm
parent39a514cbe798ba02df0e23cb737a5a945d8e9445 (diff)
parentb9f549f2e188833ff4550ee2ecbb0f12a9445414 (diff)
Merge branch 'catalyst-google-api-access' of git://github.com/petterreinholdtsen/fixmystreet
Diffstat (limited to 'perllib/FixMyStreet/Geocode.pm')
-rw-r--r--perllib/FixMyStreet/Geocode.pm5
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;