Skip to content

Commit

Permalink
[BANES] Add geocoder override for a particular road
Browse files Browse the repository at this point in the history
  • Loading branch information
davea authored and dracos committed Nov 1, 2024
1 parent 42b9d05 commit 2943fac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions perllib/FixMyStreet/Cobrand/BathNES.pm
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,21 @@ sub disambiguate_location {
};
}

sub geocode_postcode {
my ( $self, $s ) = @_;

# One particular road name has an override to a specific location,
# as the geocoder doesn't find any results for it.
if ($s =~/^ten\s+acre\s+l[a]?n[e]?$/i) {
return {
latitude => 51.347351,
longitude => -2.409305
};
}

return $self->next::method($s);
}

sub new_report_title_field_label {
"Summarise the problem and location"
}
Expand Down

0 comments on commit 2943fac

Please sign in to comment.