aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode/Bing.pm
diff options
context:
space:
mode:
authorGuillaume RISCHARD <git@stereo.lu>2012-03-22 13:16:06 +0100
committerGuillaume RISCHARD <git@stereo.lu>2012-03-22 13:16:06 +0100
commit2510c64411a437f293dcaf36086618660db5d860 (patch)
tree2bac32a9f8691cd55d40af14d9d71733e7eb159b /perllib/FixMyStreet/Geocode/Bing.pm
parent0e83d3541eece4481bd6ad66eaffd9e6625d8137 (diff)
Reverse bing geocoding should get the local culture parameter
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Bing.pm')
-rw-r--r--perllib/FixMyStreet/Geocode/Bing.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Geocode/Bing.pm b/perllib/FixMyStreet/Geocode/Bing.pm
index 4045371a5..70275c2c7 100644
--- a/perllib/FixMyStreet/Geocode/Bing.pm
+++ b/perllib/FixMyStreet/Geocode/Bing.pm
@@ -68,13 +68,13 @@ sub string {
}
sub reverse {
- my ( $latitude, $longitude, $cache ) = @_;
+ my ( $latitude, $longitude, $bing_culture, $cache ) = @_;
# Get nearest road-type thing from Bing
my $key = mySociety::Config::get('BING_MAPS_API_KEY', '');
if ($key) {
my $url = "http://dev.virtualearth.net/REST/v1/Locations/$latitude,$longitude?key=$key";
- $url .= '&c=' . $params->{bing_culture} if $params->{bing_culture};
+ $url .= '&c=' . $bing_culture if $bing_culture;
my $j;
if ( $cache ) {
my $cache_dir = FixMyStreet->config('GEO_CACHE') . 'bing/';