From 103c53370176378364e028f61fc73eb34b52638e Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Mon, 1 Apr 2019 15:33:50 -0400 Subject: [PATCH] Add "Cycle & Foot Path" preset (re: #6070) Offer to add "bicycle=designated" to features with "highway=cycleway" + "foot=designated" but no "bicycle" tag --- data/presets.yaml | 5 ++++ data/presets/presets.json | 1 + .../highway/cycleway/bicycle_foot.json | 28 +++++++++++++++++++ data/taginfo.json | 2 +- dist/locales/en.json | 4 +++ 5 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 data/presets/presets/highway/cycleway/bicycle_foot.json diff --git a/data/presets.yaml b/data/presets.yaml index 595ecdc82..0cd38f056 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -4082,6 +4082,11 @@ en: name: Cycle Path # 'terms: bike path,bicyle path' terms: '' + highway/cycleway/bicycle_foot: + # 'highway=cycleway, foot=designated' + name: Cycle & Foot Path + # 'terms: bicycle and foot path,mixed-use trail,multi-use trail,segregated trail' + terms: '' highway/cycleway/crossing/marked: # 'cycleway=crossing, crossing=marked' name: Marked Cycle Crossing diff --git a/data/presets/presets.json b/data/presets/presets.json index 13d5a2d87..c57cd025b 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -431,6 +431,7 @@ "highway/crossing/unmarked-raised": {"fields": ["crossing", "tactile_paving"], "geometry": ["vertex"], "addTags": {"highway": "crossing", "crossing": "unmarked", "traffic_calming": "table"}, "removeTags": {"highway": "crossing", "crossing": "unmarked", "traffic_calming": "table"}, "tags": {"highway": "crossing", "traffic_calming": "table"}, "reference": {"key": "traffic_calming", "value": "table"}, "terms": ["flat top", "hump", "speed", "slow"], "matchScore": 0.95, "name": "Unmarked Crossing (Raised)"}, "highway/crossing/unmarked": {"fields": ["crossing", "tactile_paving"], "geometry": ["vertex"], "addTags": {"highway": "crossing", "crossing": "unmarked"}, "removeTags": {"highway": "crossing", "crossing": "unmarked"}, "tags": {"highway": "crossing"}, "reference": {"key": "highway", "value": "crossing"}, "terms": [], "matchScore": 0.95, "name": "Unmarked Crossing"}, "highway/cycleway": {"icon": "maki-bicycle", "fields": ["name", "oneway", "surface", "width", "structure", "access", "incline"], "moreFields": ["covered", "dog", "lit", "maxspeed", "maxweight_bridge", "smoothness", "wheelchair"], "geometry": ["line"], "tags": {"highway": "cycleway"}, "terms": ["bike path", "bicyle path"], "matchScore": 0.9, "name": "Cycle Path"}, + "highway/cycleway/bicycle_foot": {"icon": "maki-bicycle", "geometry": ["line"], "tags": {"highway": "cycleway", "foot": "designated"}, "addTags": {"highway": "cycleway", "foot": "designated", "bicycle": "designated"}, "removeTags": {"highway": "cycleway", "foot": "designated", "bicycle": "designated"}, "terms": ["bicycle and foot path", "mixed-use trail", "multi-use trail", "segregated trail"], "matchScore": 0.95, "name": "Cycle & Foot Path"}, "highway/cycleway/crossing/marked": {"icon": "maki-bicycle", "fields": ["crossing", "access", "surface", "tactile_paving"], "geometry": ["line"], "tags": {"cycleway": "crossing", "crossing": "marked"}, "addTags": {"highway": "cycleway", "cycleway": "crossing", "crossing": "marked"}, "removeTags": {"highway": "cycleway", "cycleway": "crossing", "crossing": "marked"}, "reference": {"key": "cycleway", "value": "crossing"}, "terms": ["cycle crosswalk", "cycle path crossing", "cycleway crossing", "bicycle crossing", "bike crossing"], "name": "Marked Cycle Crossing"}, "highway/cycleway/crossing/unmarked": {"icon": "maki-bicycle", "fields": ["crossing", "access", "surface", "tactile_paving"], "geometry": ["line"], "tags": {"cycleway": "crossing"}, "addTags": {"highway": "cycleway", "cycleway": "crossing", "crossing": "unmarked"}, "removeTags": {"highway": "cycleway", "cycleway": "crossing", "crossing": "unmarked"}, "reference": {"key": "cycleway", "value": "crossing"}, "terms": ["cycle path crossing", "cycleway crossing", "bicycle crossing", "bike crossing"], "matchScore": 0.95, "name": "Unmarked Cycle Crossing"}, "highway/elevator": {"icon": "temaki-elevator", "fields": ["access_simple", "opening_hours", "maxweight", "ref", "wheelchair"], "moreFields": ["maxheight"], "geometry": ["vertex"], "tags": {"highway": "elevator"}, "terms": ["lift"], "name": "Elevator"}, diff --git a/data/presets/presets/highway/cycleway/bicycle_foot.json b/data/presets/presets/highway/cycleway/bicycle_foot.json new file mode 100644 index 000000000..c14443470 --- /dev/null +++ b/data/presets/presets/highway/cycleway/bicycle_foot.json @@ -0,0 +1,28 @@ +{ + "icon": "maki-bicycle", + "geometry": [ + "line" + ], + "tags": { + "highway": "cycleway", + "foot": "designated" + }, + "addTags": { + "highway": "cycleway", + "foot": "designated", + "bicycle": "designated" + }, + "removeTags": { + "highway": "cycleway", + "foot": "designated", + "bicycle": "designated" + }, + "terms": [ + "bicycle and foot path", + "mixed-use trail", + "multi-use trail", + "segregated trail" + ], + "matchScore": 0.95, + "name": "Cycle & Foot Path" +} diff --git a/data/taginfo.json b/data/taginfo.json index bf40a4831..4799f55ef 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -393,7 +393,7 @@ {"key": "sport", "value": "golf", "description": "🄿 Putting Green", "object_types": ["area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "golf", "value": "hole", "description": "🄿 Golf Hole", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "natural", "value": "water", "description": "🄿 Lateral Water Hazard, 🄿 Water Hazard, 🄿 Water", "object_types": ["area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, - {"key": "foot", "value": "designated", "description": "🄿 Golf Walking Path, 🄵 Allowed Access", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, + {"key": "foot", "value": "designated", "description": "🄿 Golf Walking Path, 🄿 Cycle & Foot Path, 🄵 Allowed Access", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "healthcare", "description": "🄿 Healthcare Facility, 🄵 Type", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/hospital-15.svg?sanitize=true"}, {"key": "healthcare", "value": "alternative", "description": "🄿 Alternative Medicine", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/hospital-15.svg?sanitize=true"}, {"key": "healthcare:speciality", "value": "chiropractic", "description": "🄿 Chiropractor", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/hospital-15.svg?sanitize=true"}, diff --git a/dist/locales/en.json b/dist/locales/en.json index e587ef77d..db576b2c0 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -5715,6 +5715,10 @@ "name": "Cycle Path", "terms": "bike path,bicyle path" }, + "highway/cycleway/bicycle_foot": { + "name": "Cycle & Foot Path", + "terms": "bicycle and foot path,mixed-use trail,multi-use trail,segregated trail" + }, "highway/cycleway/crossing/marked": { "name": "Marked Cycle Crossing", "terms": "cycle crosswalk,cycle path crossing,cycleway crossing,bicycle crossing,bike crossing"