From d38eb8d8edfc9af69d9b3f3a15123fea22498be9 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 28 Dec 2007 18:10:01 +0200 Subject: [PATCH] Handle: place=locality --- src/osm.c | 4 ++++ src/osm.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osm.c b/src/osm.c index 66a16bd..1a5f6be 100644 --- a/src/osm.c +++ b/src/osm.c @@ -288,6 +288,7 @@ struct _nodeinfo { { "place", "town", NODE_PLACE_TOWN }, { "place", "village", NODE_PLACE_VILLAGE }, { "place", "hamlet", NODE_PLACE_HAMLET }, + { "place", "locality", NODE_PLACE_LOCALITY }, { "place", "suburb", NODE_PLACE_SUBURB }, { "place", "island", NODE_PLACE_ISLAND }, @@ -1081,6 +1082,7 @@ while (*place!=NULL) { return t->id; break; case NODE_PLACE_SUBURB: + case NODE_PLACE_LOCALITY: t=g_hash_table_lookup(osm_place_city, ps); if (t) return t->id; @@ -1125,6 +1127,7 @@ switch (nt) { case NODE_PLACE_TOWN: case NODE_PLACE_VILLAGE: case NODE_PLACE_HAMLET: + case NODE_PLACE_LOCALITY: t=g_hash_table_lookup(osm_place_city, ps); if (t) return t->id; @@ -1493,6 +1496,7 @@ switch (t) { break; case NODE_PLACE_VILLAGE: case NODE_PLACE_HAMLET: + case NODE_PLACE_LOCALITY: g_hash_table_insert(osm_place_village, cnode->data->name, cnode); break; case NODE_PLACE_ISLAND: diff --git a/src/osm.h b/src/osm.h index 84cb1f1..c416ad9 100644 --- a/src/osm.h +++ b/src/osm.h @@ -133,7 +133,8 @@ typedef enum { NODE_POI_END=999, /* Places */ NODE_PLACE_START=1000, - NODE_PLACE_SUBURB=1001, + NODE_PLACE_SUBURB=1001, /* http://wiki.openstreetmap.org/index.php/Proposed_features/Suburb */ + NODE_PLACE_LOCALITY=1002, /* http://wiki.openstreetmap.org/index.php/Proposed_features/Locality */ NODE_PLACE_HAMLET=1049, NODE_PLACE_VILLAGE=1050, NODE_PLACE_ISLAND=1051, -- 2.39.5