diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-29 12:35:47 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-30 17:27:46 +0100 |
commit | d3159038445f2b78915abfbe4ec07fcd99cedf06 (patch) | |
tree | c92ae89321c7d97faa8d1f29b4815d959831f2ec /perllib/FixMyStreet/Geocode/Bing.pm | |
parent | 8454ac8ce05202b21e1f46e99cbc729cc5cd5853 (diff) |
Also treat as same if just same locality and postalcode.
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Bing.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode/Bing.pm | 4 |
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 }); |