aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode
diff options
context:
space:
mode:
authorJonas Oberg <jonas@morus.se>2012-12-04 14:47:07 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2014-03-11 16:36:22 +0000
commit1036ac1c0e41a814a1dbf012853a58cc71a742f2 (patch)
tree7aa982ca31ea0ff779f34fae3d35a47c48bbb51a /perllib/FixMyStreet/Geocode
parentefafaf065202da6adfa03a0ee9fd326d7acc5c9d (diff)
Added hamlet
Diffstat (limited to 'perllib/FixMyStreet/Geocode')
-rw-r--r--perllib/FixMyStreet/Geocode/OSM.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/OSM.pm b/perllib/FixMyStreet/Geocode/OSM.pm
index f4f2fba95..20d2fe896 100644
--- a/perllib/FixMyStreet/Geocode/OSM.pm
+++ b/perllib/FixMyStreet/Geocode/OSM.pm
@@ -76,7 +76,7 @@ sub string {
$_->{type} eq "locality" ||
$_->{type} eq "suburb" ||
$_->{type} eq "village" ||
- $_->{type} eq "city" ||
+ $_->{type} eq "hamlet" ||
$_->{type} eq "secondary" ||
$_->{type} eq "tertiary" ||
$_->{type} eq "primary" ||
@@ -87,6 +87,7 @@ sub string {
$address = $_->{address}->{suburb}.", ".$_->{address}->{administrative} if $_->{type} eq "suburb";
$address = $_->{address}->{town}.", ".$_->{address}->{state} if $_->{type} eq "town";
$address = $_->{address}->{village}.", ".$_->{address}->{administrative} if $_->{type} eq "village";
+ $address = $_->{address}->{hamlet}.", ".$_->{address}->{administrative} if $_->{type} eq "hamlet";
# address => ($_->{address}->{postcode})?
#($_->{address}->{road}.", ".$_->{address}->{postcode}." ".$_->{address}->{administrative}):($_->{address}->{road}.", ".$_->{address}->{administrative}) ,