From 8051ed5d82131ed981222546f9c06bc72e16734b Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Sun, 7 Apr 2019 15:24:00 -0700 Subject: [PATCH] Add Trailhead preset --- data/presets.yaml | 5 ++++ data/presets/presets.json | 1 + data/presets/presets/highway/trailhead.json | 28 +++++++++++++++++++++ data/taginfo.json | 1 + dist/locales/en.json | 4 +++ svg/fontawesome/fas-hiking.svg | 1 + 6 files changed, 40 insertions(+) create mode 100644 data/presets/presets/highway/trailhead.json create mode 100644 svg/fontawesome/fas-hiking.svg diff --git a/data/presets.yaml b/data/presets.yaml index b39b7bef7..a865d8973 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -4338,6 +4338,11 @@ en: name: Traffic Signals # 'terms: light,stoplight,traffic light' terms: '' + highway/trailhead: + # highway=trailhead + name: Trailhead + # 'terms: hiking,mile zero,mountain biking,mountaineering,trail endpoint,trail start,staging area,trekking' + terms: '' highway/trunk: # highway=trunk name: Trunk Road diff --git a/data/presets/presets.json b/data/presets/presets.json index 8f7281aa2..1318d70d2 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -481,6 +481,7 @@ "highway/track": {"icon": "fas-truck-monster", "fields": ["name", "tracktype", "surface", "width", "structure", "access", "incline", "smoothness"], "moreFields": ["covered", "flood_prone", "horse_scale", "maxweight_bridge", "mtb/scale", "mtb/scale/uphill", "mtb/scale/imba"], "geometry": ["line"], "tags": {"highway": "track"}, "terms": ["woods road", "forest road", "logging road", "fire road", "farm road", "agricultural road", "ranch road", "carriage road", "primitive", "unmaintained", "rut", "offroad", "4wd", "4x4", "four wheel drive", "atv", "quad", "jeep", "double track", "two track"], "name": "Unmaintained Track Road"}, "highway/traffic_mirror": {"geometry": ["point", "vertex"], "fields": ["direction"], "tags": {"highway": "traffic_mirror"}, "terms": ["blind spot", "convex", "corner", "curved", "roadside", "round", "safety", "sphere", "visibility"], "name": "Traffic Mirror"}, "highway/traffic_signals": {"icon": "temaki-traffic_signals", "geometry": ["vertex"], "tags": {"highway": "traffic_signals"}, "fields": ["traffic_signals", "traffic_signals/direction"], "terms": ["light", "stoplight", "traffic light"], "name": "Traffic Signals"}, + "highway/trailhead": {"icon": "fas-hiking", "fields": ["name", "operator", "elevation", "access_simple", "fee", "opening_hours"], "geometry": ["vertex"], "tags": {"highway": "trailhead"}, "terms": ["hiking", "mile zero", "mountain biking", "mountaineering", "trail endpoint", "trail start", "staging area", "trekking"], "name": "Trailhead"}, "highway/trunk_link": {"icon": "iD-highway-trunk-link", "fields": ["{highway/motorway_link}"], "moreFields": ["{highway/motorway_link}"], "geometry": ["line"], "tags": {"highway": "trunk_link"}, "terms": ["on ramp", "off ramp", "ramp", "road", "street"], "name": "Trunk Link"}, "highway/trunk": {"icon": "iD-highway-trunk", "fields": ["name", "ref_road_number", "oneway", "maxspeed", "lanes", "surface", "structure", "access"], "moreFields": ["covered", "incline", "junction_line", "lit", "maxheight", "minspeed", "maxweight_bridge", "smoothness", "toll"], "geometry": ["line"], "tags": {"highway": "trunk"}, "terms": ["road", "street"], "name": "Trunk Road"}, "highway/turning_circle": {"icon": "maki-circle-stroked", "geometry": ["vertex"], "tags": {"highway": "turning_circle"}, "terms": ["cul-de-sac"], "name": "Turning Circle"}, diff --git a/data/presets/presets/highway/trailhead.json b/data/presets/presets/highway/trailhead.json new file mode 100644 index 000000000..c644a61ff --- /dev/null +++ b/data/presets/presets/highway/trailhead.json @@ -0,0 +1,28 @@ +{ + "icon": "fas-hiking", + "fields": [ + "name", + "operator", + "elevation", + "access_simple", + "fee", + "opening_hours" + ], + "geometry": [ + "vertex" + ], + "tags": { + "highway": "trailhead" + }, + "terms": [ + "hiking", + "mile zero", + "mountain biking", + "mountaineering", + "trail endpoint", + "trail start", + "staging area", + "trekking" + ], + "name": "Trailhead" +} diff --git a/data/taginfo.json b/data/taginfo.json index 216ce832c..050c79ed5 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -461,6 +461,7 @@ {"key": "highway", "value": "track", "description": "🄿 Unmaintained Track Road", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-truck-monster.svg?sanitize=true"}, {"key": "highway", "value": "traffic_mirror", "description": "🄿 Traffic Mirror", "object_types": ["node"]}, {"key": "highway", "value": "traffic_signals", "description": "🄿 Traffic Signals", "object_types": ["node"], "icon_url": "https://raw.githubusercontent.com/bhousel/temaki/master/icons/traffic_signals.svg?sanitize=true"}, + {"key": "highway", "value": "trailhead", "description": "🄿 Trailhead", "object_types": ["node"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-hiking.svg?sanitize=true"}, {"key": "highway", "value": "trunk_link", "description": "🄿 Trunk Link", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/iD-sprite/presets/highway-trunk-link.svg?sanitize=true"}, {"key": "highway", "value": "trunk", "description": "🄿 Trunk Road", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/iD-sprite/presets/highway-trunk.svg?sanitize=true"}, {"key": "highway", "value": "turning_circle", "description": "🄿 Turning Circle", "object_types": ["node"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/circle-stroked-15.svg?sanitize=true"}, diff --git a/dist/locales/en.json b/dist/locales/en.json index b37aeb307..567058b26 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -5970,6 +5970,10 @@ "name": "Traffic Signals", "terms": "light,stoplight,traffic light" }, + "highway/trailhead": { + "name": "Trailhead", + "terms": "hiking,mile zero,mountain biking,mountaineering,trail endpoint,trail start,staging area,trekking" + }, "highway/trunk_link": { "name": "Trunk Link", "terms": "on ramp,off ramp,ramp,road,street" diff --git a/svg/fontawesome/fas-hiking.svg b/svg/fontawesome/fas-hiking.svg new file mode 100644 index 000000000..5b9ac06a7 --- /dev/null +++ b/svg/fontawesome/fas-hiking.svg @@ -0,0 +1 @@ + \ No newline at end of file