aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode/Bing.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-29 15:21:42 +0100
committerStruan Donald <struan@exo.org.uk>2012-03-29 15:21:42 +0100
commit62469c91c9a5a7d3267fe4d943785d940c1186b4 (patch)
tree33e34f8d66827c9cfbdde0b399973c70bc3eaf64 /perllib/FixMyStreet/Geocode/Bing.pm
parentb0a65005e25bd7c6a15f70f4e5db4a2dea99f176 (diff)
parent1ec34a47cf69f6dc440409da3a5c789f4cda581b (diff)
Merge remote-tracking branch 'origin/bromley' into bromley
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Bing.pm')
-rw-r--r--perllib/FixMyStreet/Geocode/Bing.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/Bing.pm b/perllib/FixMyStreet/Geocode/Bing.pm
index 83fde0c2c..99197a5f9 100644
--- a/perllib/FixMyStreet/Geocode/Bing.pm
+++ b/perllib/FixMyStreet/Geocode/Bing.pm
@@ -64,7 +64,9 @@ sub string {
next if @valid_locations
&& $valid_locations[-1]{address}{postalCode} eq $_->{address}{postalCode}
&& ( $valid_locations[-1]{address}{locality} eq $_->{address}{adminDistrict2}
- || $valid_locations[-1]{address}{adminDistrict2} eq $_->{address}{locality} );
+ || $valid_locations[-1]{address}{adminDistrict2} eq $_->{address}{locality}
+ || $valid_locations[-1]{address}{locality} eq $_->{address}{locality}
+ );
( $latitude, $longitude ) = @{ $_->{point}->{coordinates} };
push (@$error, { address => $address, latitude => $latitude, longitude => $longitude });