aboutsummaryrefslogtreecommitdiffstats
path: root/bin/populate_bing_cache
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-22 12:51:54 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-22 12:51:54 +0000
commit5268a7dd4fb783e6b3f7b5387aa0b99708157b65 (patch)
tree1d6acade05f10ab60ba973124be81672df8ba6a9 /bin/populate_bing_cache
parentf7c46612fd1ae32e738acfc084abb674d1c1487a (diff)
parent2510c64411a437f293dcaf36086618660db5d860 (diff)
Merge remote branch 'lux/bingternational'
Diffstat (limited to 'bin/populate_bing_cache')
-rwxr-xr-xbin/populate_bing_cache4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/populate_bing_cache b/bin/populate_bing_cache
index a3bef6759..17c8911d0 100755
--- a/bin/populate_bing_cache
+++ b/bin/populate_bing_cache
@@ -9,6 +9,8 @@ use Data::Dumper;
use FixMyStreet::App;
use FixMyStreet::Geocode::Bing;
+my $bing_culture = 'en-GB';
+
my $reports = FixMyStreet::App->model('DB::Problem')->search(
{
geocode => undef,
@@ -46,7 +48,7 @@ while ( my $report = $reports->next ) {
next if $report->geocode;
my $j = FixMyStreet::Geocode::Bing::reverse( $report->latitude,
- $report->longitude );
+ $report->longitude, $bing_culture );
$report->geocode($j);
$report->update;