aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode/Bing.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-12-02 17:45:03 +0000
committerMatthew Somerville <matthew@mysociety.org>2015-12-02 17:45:03 +0000
commitb6fcd966d204d35c149b2bff91513e732f3101c8 (patch)
tree75fb01b3910fc4093584bb3b9056e9ea6dbe0eba /perllib/FixMyStreet/Geocode/Bing.pm
parent8543192128ed15c9bc73e3686ab03324ee5e2b11 (diff)
parent7b20745945638cce030879eafc8cac8f8bd81c56 (diff)
Merge branch 'reduce-fixmystreet-app'
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Bing.pm')
-rw-r--r--perllib/FixMyStreet/Geocode/Bing.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/Bing.pm b/perllib/FixMyStreet/Geocode/Bing.pm
index d7db10ae6..a846f3348 100644
--- a/perllib/FixMyStreet/Geocode/Bing.pm
+++ b/perllib/FixMyStreet/Geocode/Bing.pm
@@ -8,6 +8,7 @@ package FixMyStreet::Geocode::Bing;
use strict;
+use FixMyStreet::Geocode;
use Utils;
# string STRING CONTEXT
@@ -71,7 +72,7 @@ sub reverse {
my ( $latitude, $longitude, $bing_culture ) = @_;
# Get nearest road-type thing from Bing
- my $key = mySociety::Config::get('BING_MAPS_API_KEY', '');
+ my $key = FixMyStreet->config('BING_MAPS_API_KEY', '');
if ($key) {
my $url = "http://dev.virtualearth.net/REST/v1/Locations/$latitude,$longitude?key=$key";
$url .= '&c=' . $bing_culture if $bing_culture;