From 17f2c5c0f435b2a85370468388dc8f5b963b68b1 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 5 Apr 2019 09:40:35 -0700 Subject: [PATCH] Add Zip Line preset --- data/presets.yaml | 5 ++++ data/presets/presets.json | 1 + data/presets/presets/aerialway/zip_line.json | 28 ++++++++++++++++++++ data/taginfo.json | 3 ++- dist/locales/en.json | 4 +++ modules/osm/tags.js | 2 +- 6 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 data/presets/presets/aerialway/zip_line.json diff --git a/data/presets.yaml b/data/presets.yaml index 1e4857afd..cde25cc83 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -2280,6 +2280,11 @@ en: name: T-bar Lift # 'terms: tbar' terms: '' + aerialway/zip_line: + # aerialway=zip_line + name: Zip Line + # 'terms: aerial runway,canopy,flying fox,foefie slide,gravity propelled aerial ropeslide,Tyrolean traverse,zip wire,zip-line,zipline,zipwire' + terms: '' aeroway: # aeroway=* name: Aeroway diff --git a/data/presets/presets.json b/data/presets/presets.json index 163b4528a..54dc9e132 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -34,6 +34,7 @@ "aerialway/pylon": {"geometry": ["point", "vertex"], "fields": ["ref"], "tags": {"aerialway": "pylon"}, "name": "Aerialway Pylon"}, "aerialway/rope_tow": {"geometry": ["line"], "terms": ["handle tow", "bugel lift"], "fields": ["name", "aerialway/capacity", "aerialway/duration"], "tags": {"aerialway": "rope_tow"}, "name": "Rope Tow Lift"}, "aerialway/t-bar": {"geometry": ["line"], "fields": ["name", "aerialway/capacity", "aerialway/duration"], "terms": ["tbar"], "tags": {"aerialway": "t-bar"}, "name": "T-bar Lift"}, + "aerialway/zip_line": {"geometry": ["line"], "fields": ["name", "oneway_yes", "aerialway/duration", "maxweight", "access_simple"], "terms": ["aerial runway", "canopy", "flying fox", "foefie slide", "gravity propelled aerial ropeslide", "Tyrolean traverse", "zip wire", "zip-line", "zipline", "zipwire"], "tags": {"aerialway": "zip_line"}, "name": "Zip Line"}, "aeroway/aerodrome": {"icon": "maki-airport", "geometry": ["point", "area"], "fields": ["name", "iata", "icao", "operator", "internet_access", "internet_access/fee", "internet_access/ssid"], "terms": ["aerodrome", "aeroway", "airplane", "airport", "jet", "plane"], "tags": {"aeroway": "aerodrome"}, "matchScore": 0.9, "name": "Airport"}, "aeroway/apron": {"icon": "maki-airport", "geometry": ["area"], "terms": ["ramp"], "fields": ["ref", "surface"], "tags": {"aeroway": "apron"}, "name": "Apron"}, "aeroway/gate": {"icon": "maki-airport", "geometry": ["point"], "fields": ["ref_aeroway_gate"], "tags": {"aeroway": "gate"}, "name": "Airport Gate"}, diff --git a/data/presets/presets/aerialway/zip_line.json b/data/presets/presets/aerialway/zip_line.json new file mode 100644 index 000000000..e64b96b43 --- /dev/null +++ b/data/presets/presets/aerialway/zip_line.json @@ -0,0 +1,28 @@ +{ + "geometry": [ + "line" + ], + "fields": [ + "name", + "oneway_yes", + "aerialway/duration", + "maxweight", + "access_simple" + ], + "terms": [ + "aerial runway", + "canopy", + "flying fox", + "foefie slide", + "gravity propelled aerial ropeslide", + "Tyrolean traverse", + "zip wire", + "zip-line", + "zipline", + "zipwire" + ], + "tags": { + "aerialway": "zip_line" + }, + "name": "Zip Line" +} diff --git a/data/taginfo.json b/data/taginfo.json index c65e8307b..09b15eaf9 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -37,6 +37,7 @@ {"key": "aerialway", "value": "pylon", "description": "🄿 Aerialway Pylon", "object_types": ["node"]}, {"key": "aerialway", "value": "rope_tow", "description": "🄿 Rope Tow Lift", "object_types": ["way"]}, {"key": "aerialway", "value": "t-bar", "description": "🄿 T-bar Lift", "object_types": ["way"]}, + {"key": "aerialway", "value": "zip_line", "description": "🄿 Zip Line", "object_types": ["way"]}, {"key": "aeroway", "value": "aerodrome", "description": "🄿 Airport", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/airport-15.svg?sanitize=true"}, {"key": "aeroway", "value": "apron", "description": "🄿 Apron", "object_types": ["area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/airport-15.svg?sanitize=true"}, {"key": "aeroway", "value": "gate", "description": "🄿 Airport Gate", "object_types": ["node"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/airport-15.svg?sanitize=true"}, @@ -48,7 +49,7 @@ {"key": "allotments", "value": "plot", "description": "🄿 Community Garden Plot", "object_types": ["area"]}, {"key": "amenity", "value": "bus_station", "description": "🄿 Bus Station / Terminal (unsearchable)", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/bus-15.svg?sanitize=true"}, {"key": "amenity", "value": "coworking_space", "description": "🄿 Coworking Space (unsearchable)", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/commercial-15.svg?sanitize=true"}, - {"key": "amenity", "value": "embassy", "description": "🄿 Embassy (unsearchable)", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/embassy-15.svg?sanitize=true"}, + {"key": "amenity", "value": "embassy", "description": "🄿 Embassy (unsearchable), 🄳 ➜ office=diplomatic", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/embassy-15.svg?sanitize=true"}, {"key": "amenity", "value": "ferry_terminal", "description": "🄿 Ferry Station / Terminal (unsearchable)", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/ferry-15.svg?sanitize=true"}, {"key": "amenity", "value": "nursing_home", "description": "🄿 Nursing Home (unsearchable)", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/wheelchair-15.svg?sanitize=true"}, {"key": "amenity", "value": "recycling", "description": "🄿 Recycling (unsearchable)", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/recycling-15.svg?sanitize=true"}, diff --git a/dist/locales/en.json b/dist/locales/en.json index afa923d66..6141fae8c 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -4181,6 +4181,10 @@ "name": "T-bar Lift", "terms": "tbar" }, + "aerialway/zip_line": { + "name": "Zip Line", + "terms": "aerial runway,canopy,flying fox,foefie slide,gravity propelled aerial ropeslide,Tyrolean traverse,zip wire,zip-line,zipline,zipwire" + }, "aeroway/aerodrome": { "name": "Airport", "terms": "aerodrome,aeroway,airplane,airport,jet,plane" diff --git a/modules/osm/tags.js b/modules/osm/tags.js index 0e08dfa19..5a7c946f2 100644 --- a/modules/osm/tags.js +++ b/modules/osm/tags.js @@ -17,7 +17,7 @@ export var osmOneWayTags = { 'platter': true, 'rope_tow': true, 't-bar': true, - 'zipline': true + 'zip_line': true }, 'highway': { 'motorway': true