aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorJonas Oberg <jonas@morus.se>2012-12-17 13:16:50 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2014-03-11 16:36:23 +0000
commit3f8c6bd7b82e12e0ac31eaa3975e1142f6173f05 (patch)
tree4c91a2e1c1316d6506d5eaccdc2064dc9746fb43 /perllib
parent151136832ba260f52a41d6170458ce7b631edd53 (diff)
Added link to service for comments
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Geocode/OSM.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Geocode/OSM.pm b/perllib/FixMyStreet/Geocode/OSM.pm
index 7fb00c19c..ed79ba575 100644
--- a/perllib/FixMyStreet/Geocode/OSM.pm
+++ b/perllib/FixMyStreet/Geocode/OSM.pm
@@ -80,6 +80,7 @@ sub string {
$_->{type} eq "village" ||
$_->{type} eq "hamlet" ||
$_->{type} eq "secondary" ||
+ $_->{type} eq "pedestrian" ||
$_->{type} eq "tertiary" ||
$_->{type} eq "square" ||
$_->{type} eq "park" ||
@@ -96,6 +97,7 @@ sub string {
$address = $_->{address}->{hamlet}.", ".$_->{address}->{state} if $_->{type} eq "hamlet";
$address = $_->{address}->{leisure}.", ".$_->{address}->{administrative} if $_->{type} eq "square";
$address = $_->{address}->{park}.", ".$_->{address}->{administrative} if $_->{type} eq "park";
+ $address = $_->{address}->{pedestrian}.", ".$_->{address}->{administrative} if $_->{type} eq "pedestrian";
( $latitude, $longitude ) = ( $_->{lat}, $_->{lon} );
mySociety::Locale::in_gb_locale {