From 31d165332b02abb914ba7d2b281167f65485092e Mon Sep 17 00:00:00 2001 From: Simon Bilsky-Rollins Date: Sun, 26 Aug 2018 11:22:23 -0400 Subject: [PATCH] add preset for wi-fi hotspots --- data/presets.yaml | 5 +++++ data/presets/presets.json | 1 + .../presets/presets/internet_access/wlan.json | 20 +++++++++++++++++++ data/taginfo.json | 12 ++++++----- dist/locales/en.json | 4 ++++ svg/fontawesome/fas-wifi.svg | 1 + 6 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 data/presets/presets/internet_access/wlan.json create mode 100644 svg/fontawesome/fas-wifi.svg diff --git a/data/presets.yaml b/data/presets.yaml index 60c5b5d0a..3d207fa6e 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -3585,6 +3585,11 @@ en: # historic=wayside_shrine name: Wayside Shrine terms: '' + internet_access/wlan: + # internet_access=wlan + name: Wi-Fi Hotspot + # 'terms: wi-fi,wifi,hotspot' + terms: '' junction: # junction=yes name: Junction diff --git a/data/presets/presets.json b/data/presets/presets.json index 453609b97..afdc567ea 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -414,6 +414,7 @@ "historic/tomb": {"icon": "maki-cemetery", "fields": ["name", "tomb", "building_area", "inscription"], "geometry": ["point", "area"], "tags": {"historic": "tomb"}, "name": "Tomb"}, "historic/wayside_cross": {"icon": "maki-religious-christian", "fields": ["name", "inscription"], "geometry": ["point", "vertex", "area"], "tags": {"historic": "wayside_cross"}, "name": "Wayside Cross"}, "historic/wayside_shrine": {"icon": "maki-landmark", "fields": ["name", "religion", "denomination", "inscription"], "geometry": ["point", "vertex", "area"], "tags": {"historic": "wayside_shrine"}, "name": "Wayside Shrine"}, + "internet_access/wlan": {"icon": "fas-wifi", "geometry": ["point", "area"], "fields": ["internet_access/fee", "internet_access/ssid"], "terms": ["wi-fi", "wifi", "hotspot"], "tags": {"internet_access": "wlan"}, "name": "Wi-Fi Hotspot"}, "junction": {"icon": "temaki-junction", "fields": ["name"], "geometry": ["vertex", "area"], "tags": {"junction": "yes"}, "name": "Junction"}, "landuse": {"fields": ["name", "landuse"], "geometry": ["area"], "tags": {"landuse": "*"}, "matchScore": 0.9, "name": "Land Use"}, "landuse/farm": {"icon": "maki-farm", "fields": ["name", "operator", "crop"], "geometry": ["point", "area"], "tags": {"landuse": "farm"}, "terms": [], "name": "Farmland", "searchable": false}, diff --git a/data/presets/presets/internet_access/wlan.json b/data/presets/presets/internet_access/wlan.json new file mode 100644 index 000000000..317e50596 --- /dev/null +++ b/data/presets/presets/internet_access/wlan.json @@ -0,0 +1,20 @@ +{ + "icon": "fas-wifi", + "geometry": [ + "point", + "area" + ], + "fields": [ + "internet_access/fee", + "internet_access/ssid" + ], + "terms": [ + "wi-fi", + "wifi", + "hotspot" + ], + "tags": { + "internet_access": "wlan" + }, + "name": "Wi-Fi Hotspot" +} diff --git a/data/taginfo.json b/data/taginfo.json index c9f9ec2a8..e128a08a5 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -2779,6 +2779,13 @@ "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/landmark-15.svg?sanitize=true" }, + { + "key": "internet_access", + "value": "wlan", + "description": "Wi-Fi Hotspot, Internet Access", + "object_types": ["node", "area"], + "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-wifi.svg?sanitize=true" + }, { "key": "junction", "value": "yes", @@ -6611,11 +6618,6 @@ "description": "Internet Access" }, {"key": "internet_access", "value": "no", "description": "Internet Access"}, - { - "key": "internet_access", - "value": "wlan", - "description": "Internet Access" - }, { "key": "internet_access", "value": "wired", diff --git a/dist/locales/en.json b/dist/locales/en.json index 4b8c46cb2..5398ff08e 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -4585,6 +4585,10 @@ "name": "Wayside Shrine", "terms": "" }, + "internet_access/wlan": { + "name": "Wi-Fi Hotspot", + "terms": "wi-fi,wifi,hotspot" + }, "junction": { "name": "Junction", "terms": "" diff --git a/svg/fontawesome/fas-wifi.svg b/svg/fontawesome/fas-wifi.svg new file mode 100644 index 000000000..364b5060a --- /dev/null +++ b/svg/fontawesome/fas-wifi.svg @@ -0,0 +1 @@ + \ No newline at end of file