diff options
author | Dave Arter <davea@mysociety.org> | 2018-03-16 16:36:20 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-04-03 12:44:24 +0100 |
commit | b890d9779a53fb0cd07c10f2e19728b57700931f (patch) | |
tree | 16aaad61fd74b5b097ae72f2b01ec176c749cfc9 | |
parent | 9af4b40ff38cc03b88b372aac01e177f32a560ae (diff) |
[Buckinghamshire] Remove duplicate disambiguation for ‘Aylesbury’
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Buckinghamshire.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm index 9bc095181..360704d40 100644 --- a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm +++ b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm @@ -19,6 +19,10 @@ sub disambiguate_location { my $town = 'Buckinghamshire'; + # The geocoder returns two results for 'Aylesbury', so force the better + # result to be used. + $town = "$town, HP20 2NH" if $string =~ /[\s]*aylesbury[\s]*/i; + return { %{ $self->SUPER::disambiguate_location() }, town => $town, |