diff options
author | Dave Arter <davea@mysociety.org> | 2020-06-17 13:44:07 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-07-02 14:39:15 +0100 |
commit | e96deac6ee76f792bc117ccf8096024f3b817c6c (patch) | |
tree | 11b354ee6872ccad46cb045891c0e90af2b7d01d | |
parent | 86ba23a6fdc0a9857f7729366d25a0dc124d9c97 (diff) |
[Hackney] Add geocoder override for Teale Street
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Hackney.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Hackney.pm b/perllib/FixMyStreet/Cobrand/Hackney.pm index ed29471b2..c3af134a9 100644 --- a/perllib/FixMyStreet/Cobrand/Hackney.pm +++ b/perllib/FixMyStreet/Cobrand/Hackney.pm @@ -15,9 +15,17 @@ sub disambiguate_location { my $self = shift; my $string = shift; + my $town = 'Hackney'; + + # Teale Street is on the boundary with Tower Hamlets and + # shows the 'please use fixmystreet.com' message, but Hackney + # do provide services on that road. + ($string, $town) = ('E2 9AA', '') if $string =~ /^teale\s+st/i; + return { %{ $self->SUPER::disambiguate_location() }, - town => 'Hackney', + string => $string, + town => $town, centre => '51.552267,-0.063316', bounds => [ 51.519814, -0.104511, 51.577784, -0.016527 ], }; |