From a785af047b650118a8f01c9edf83aa9dd2c61da6 Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Thu, 23 May 2019 18:44:20 +0300 Subject: [PATCH] [generator] Add tag replacement rules. --- data/replaced_tags.txt | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/data/replaced_tags.txt b/data/replaced_tags.txt index 04d286b8e0..752c915622 100644 --- a/data/replaced_tags.txt +++ b/data/replaced_tags.txt @@ -4,17 +4,29 @@ shelter=yes : amenity=shelter toilets=yes : amenity=toilets restaurant=yes : amenity=restaurant hotel=yes : tourism=hotel +ford=yes : highway=ford +ruins=yes : historic=ruins building=entrance : entrance=yes natural=marsh : natural=wetland, wetland=marsh natural=waterfall : waterway=waterfall +natural = forest : natural = wood +# TODO +# natural = ridge + cliff=yes -> natural=cliff + office=travel_agent : shop=travel_agency +office=notary : office=lawyer +office=administrative : office=government + shop=tailor : craft=tailor shop=estate_agent : office=estate_agent + amenity=swimming_pool : leisure=swimming_pool -building=garages : building=garage amenity=gym : leisure=fitness_centre amenity=sauna : leisure=sauna +amenity=monastery : amenity=place_of_worship + +power = transformer : power = substation diet:vegetarian=yes : cuisine=vegetarian diet:vegetarian=only : cuisine=vegetarian @@ -24,3 +36,23 @@ diet:vegan=only : cuisine=vegan diet=vegan : cuisine=vegan aerodrome:type=international : aerodrome=international + +amenity=parking_entrance : amenity=parking +amenity=parking_space : amenity=parking +amenity=garages : building=garage +amenity=garage : building=garage +building=garages : building=garage + +historic=cannon : historic=memorial +historic=technical_monument : historic=memorial +historic=shield : historic=memorial +historic=war_memorial : historic=memorial + +# OSM recommends leisure=resort instead of tourism=resort +# but we already have the type for tourism and don't have one for leisure. +leisure=resort : tourism=resort +leisure=summer_camp : tourism=resort + +place=allotments : place=neighbourhood + +crossing=traffic_signals : highway=traffic_signals