diff options
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Hounslow.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Hounslow.pm b/perllib/FixMyStreet/Cobrand/Hounslow.pm index d60b67a88..7ebd62a18 100644 --- a/perllib/FixMyStreet/Cobrand/Hounslow.pm +++ b/perllib/FixMyStreet/Cobrand/Hounslow.pm @@ -29,13 +29,27 @@ sub disambiguate_location { my $self = shift; my $string = shift; + my $town = "Hounslow"; + + # Some specific Hounslow roads produce lots of geocoder results + # for the same road; this picks just one. + ( $string, $town ) = ( "TW3 4HR", "" ) if $string =~ /lampton\s+road/i; + ( $string, $town ) = ( "TW3 4AJ", "" ) if $string =~ /kingsley\s+road/i; + ( $string, $town ) = ( "TW3 1YQ", "" ) if $string =~ /stanborough\s+road/i; + return { %{ $self->SUPER::disambiguate_location() }, + string => $string, centre => '51.468495,-0.366134', + town => $town, bounds => [ 51.420739, -0.461502, 51.502850, -0.243443 ], }; } +sub get_geocoder { + return 'OSM'; # default of Bing gives poor results, let's try overriding. +} + sub on_map_default_status { 'open' } sub contact_email { |