]> err.no Git - mapper/commitdiff
Add category and parsing support for shop=adult
authorKaj-Michael Lang <milang@onion.tal.org>
Tue, 19 Feb 2008 14:30:48 +0000 (16:30 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Tue, 19 Feb 2008 14:30:48 +0000 (16:30 +0200)
src/osm-db-import.c
src/osm.h
src/poi.c

index df9aac8aaf28da31820728c76bb5d61f4b034e1b..4f4d00c31460a43289160011f57258644b8f905a 100644 (file)
@@ -176,6 +176,7 @@ struct _nodeinfo {
        { "shop",        "general_store",NODE_AMENITY_SHOP },
        { "shop",        "food",                NODE_AMENITY_SHOP },
        { "shop",        "drinks",              NODE_AMENITY_SHOP },
+       { "shop",        "sex",                 NODE_AMENITY_SHOP_ADULT },
        { "shop",        "pharmacy",    NODE_AMENITY_PHARMACY },
 
        /* Sport */
index 28ccfb3724ebdf844057e52ee9d6a27b9f8de787..244788fc4e56e1fdcb20022993c16a34adeef739 100644 (file)
--- a/src/osm.h
+++ b/src/osm.h
@@ -87,6 +87,7 @@ typedef enum {
        NODE_AMENITY_POW=310,
        NODE_AMENITY_LIBRARY=311,
        NODE_AMENITY_NIGHTCLUB=312,
+       NODE_AMENITY_SHOP_ADULT=313,
        NODE_AMENITY_COLLEGE=320,
        NODE_AMENITY_SCHOOL=321,
        NODE_AMENITY_TOWNHALL=325,
index f612cb9ff96937c7122b029b0bbff49dfe15a988..dbfba0248dcf04c2314ad67ef7844b7c25d02a46 100644 (file)
--- a/src/poi.c
+++ b/src/poi.c
@@ -74,6 +74,7 @@ static struct _poi_categories default_poi_categories[] = {
        { NODE_AMENITY_CINEMA, "Cinema", "Place to see movies" , "recreation/cinema", "#9090a0" },
        { NODE_AMENITY_THEATRE, "Theatre", "Place to see people performing" , "recreation/theater", "#9595a5" },
        { NODE_AMENITY_SHOP, "Shopping", "Places to shop or acquire services." , "shopping", "#61ef1b" },
+       { NODE_AMENITY_SHOP_ADULT, "Adult shop", "Shops providing adult items, such as sex toys,pornography and fetish clothing" , "", "#ff0000" },
        { NODE_AMENITY_POW, "Place of Worchip", "" , "religion/church", "#7c5b0b" },
        { NODE_TOURISM_THEME_PARK, "Theme Park", "Place to have fun and ride for example rollercoasters." , "recreation/theme_park", "#8eef1b" },
        { NODE_AMENITY_COLLEGE, "College Campus/Building", "" , "education/college", "#813fdc" },