aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2015-06-12 13:02:52 +0100
committerSteven Day <steve@mysociety.org>2015-06-12 13:02:52 +0100
commitcee9d93ea8e7fefecdb435bada240445b44022a3 (patch)
treeee584367363308aabe10292275b0093eded9642e /perllib
parent7e8e56066d5df5242c743ed0b5285409190dee36 (diff)
[Bromley] Improve disambiguation for Mottingham Lane
The previous commit added some disambiguation, but it didn't actually work - despite the string working when you search for it directly. This commit improves that, so we just add a postcode to the road name, which definitely works.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index d0fb24b7d..9bee45128 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -47,9 +47,8 @@ sub disambiguate_location {
$town = 'chislehurst, BR7 6DH' if $string =~ /^white\s+horse/i;
# Mottingham Lane is 90% inside Bromley, but goes outside too and Bing
- # defaults to the top end of it. For some reason, we need both a postcode
- # and "Bromley" to make this work.
- $town = 'Mottingham Lane, SE9 4RW, Bromley' if $string =~ /^mottingham\s+lane/i;
+ # defaults to the top end of it.
+ $town = 'Mottingham Lane, SE9 4RW' if $string =~ /^mottingham\s+lane/i;
$town = '' if $string =~ /orpington/i;