From cee203bcf7cf8072c1ca4bddbca17ec73c48a8a7 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 13 May 2022 18:38:23 +0200 Subject: [PATCH] golf cartpaths: add field to choose hw tag and use highway=footway for walking paths --- data/fields/highway_cartpath.json | 12 ++++++++++++ data/presets/golf/cartpath.json | 7 ++++++- data/presets/golf/path.json | 6 ++++-- interim/source_strings.yaml | 10 ++++++++++ 4 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 data/fields/highway_cartpath.json diff --git a/data/fields/highway_cartpath.json b/data/fields/highway_cartpath.json new file mode 100644 index 00000000..e86e413b --- /dev/null +++ b/data/fields/highway_cartpath.json @@ -0,0 +1,12 @@ +{ + "key": "highway", + "type": "typeCombo", + "label": "Type of Path", + "strings": { + "options": { + "path": "Cartpath", + "service": "Service Road" + } + }, + "autoSuggestions": false +} diff --git a/data/presets/golf/cartpath.json b/data/presets/golf/cartpath.json index 9b2b3e7a..20b1b971 100644 --- a/data/presets/golf/cartpath.json +++ b/data/presets/golf/cartpath.json @@ -1,6 +1,8 @@ { "icon": "temaki-golf_cart", "fields": [ + "name", + "highway_cartpath", "{golf/path}", "maxspeed" ], @@ -13,7 +15,10 @@ "addTags": { "golf": "cartpath", "highway": "path", - "golf_cart": "designated" + "golf_cart": "customers" }, + "terms": [ + "cartpath" + ], "name": "Golf Cartpath" } diff --git a/data/presets/golf/path.json b/data/presets/golf/path.json index 166db64d..a7361d2e 100644 --- a/data/presets/golf/path.json +++ b/data/presets/golf/path.json @@ -16,8 +16,10 @@ }, "addTags": { "golf": "path", - "highway": "path", - "foot": "designated" + "highway": "footway" }, + "terms": [ + "golf path" + ], "name": "Golf Walking Path" } diff --git a/interim/source_strings.yaml b/interim/source_strings.yaml index a4ab5282..ee0da8e6 100644 --- a/interim/source_strings.yaml +++ b/interim/source_strings.yaml @@ -1351,6 +1351,14 @@ en: highway: # highway=* label: Type + highway_cartpath: + # highway=* + label: Type of Path + options: + # highway=path + path: Cartpath + # highway=service + service: Service Road historic: # historic=* label: Type @@ -5759,6 +5767,7 @@ en: golf/cartpath: # golf=cartpath | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key). name: Golf Cartpath + # 'terms: cartpath' terms: golf/clubhouse: # golf=clubhouse | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key). @@ -5789,6 +5798,7 @@ en: golf/path: # golf=path | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key). name: Golf Walking Path + # 'terms: golf path' terms: golf/rough: # golf=rough | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).