aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2020-01-08 15:25:17 +0000
committerDave Arter <davea@mysociety.org>2020-01-10 11:15:35 +0000
commit91cb479214ea9e8032b2f7f4e5dc99501d369593 (patch)
treeb4cfb1aeedd8e39cfc030aeef6e3e25d284e598e
parent9ee7b8a1ac711b5f397e0e9ba843ff236ea54c5a (diff)
[TfL] Switch to OSM geocoder; add ‘London’ to disambiguation
-rw-r--r--perllib/FixMyStreet/Cobrand/TfL.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm
index e26dfee65..751831b10 100644
--- a/perllib/FixMyStreet/Cobrand/TfL.pm
+++ b/perllib/FixMyStreet/Cobrand/TfL.pm
@@ -25,6 +25,18 @@ sub is_council { 0 }
sub abuse_reports_only { 1 }
sub send_questionnaires { 0 }
+sub disambiguate_location {
+ my $self = shift;
+ my $string = shift;
+
+ return {
+ %{ $self->SUPER::disambiguate_location() },
+ town => "London",
+ };
+}
+
+sub get_geocoder { 'OSM' }
+
sub category_change_force_resend { 1 }
sub do_not_reply_email { shift->feature('do_not_reply_email') }