From d5cdc9a6ade9532611194eca3c8ba10249fb6ec5 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 24 Apr 2024 17:07:16 +0200 Subject: [PATCH] crossing: introduce `highway=path+path=crossing` fields All fields are unsearchable (for now) so we can learn how to name properly. --- data/presets/highway/path/_crossing.json | 25 +++++++++++++ .../highway/path/crossing/_marked.json | 31 ++++++++++++++++ .../path/crossing/_traffic_signals.json | 32 +++++++++++++++++ .../highway/path/crossing/_uncontrolled.json | 32 +++++++++++++++++ .../highway/path/crossing/_unmarked.json | 35 +++++++++++++++++++ 5 files changed, 155 insertions(+) create mode 100644 data/presets/highway/path/_crossing.json create mode 100644 data/presets/highway/path/crossing/_marked.json create mode 100644 data/presets/highway/path/crossing/_traffic_signals.json create mode 100644 data/presets/highway/path/crossing/_uncontrolled.json create mode 100644 data/presets/highway/path/crossing/_unmarked.json diff --git a/data/presets/highway/path/_crossing.json b/data/presets/highway/path/_crossing.json new file mode 100644 index 000000000..c9329ea3c --- /dev/null +++ b/data/presets/highway/path/_crossing.json @@ -0,0 +1,25 @@ +{ + "icon": "temaki-cyclist_crosswalk", + "fields": [ + "{@templates/crossing/defaults}", + "{@templates/crossing/markings}", + "{@templates/crossing/geometry_line}" + ], + "geometry": [ + "line" + ], + "tags": { + "cycleway": "crossing" + }, + "addTags": { + "highway": "path", + "path": "crossing" + }, + "reference": { + "key": "path", + "value": "crossing" + }, + "searchable": false, + "matchScore": 0.95, + "name": "Cycle Crossing" +} diff --git a/data/presets/highway/path/crossing/_marked.json b/data/presets/highway/path/crossing/_marked.json new file mode 100644 index 000000000..d7a32906f --- /dev/null +++ b/data/presets/highway/path/crossing/_marked.json @@ -0,0 +1,31 @@ +{ + "icon": "temaki-pedestrian_crosswalk", + "fields": [ + "{@templates/crossing/defaults}", + "{@templates/crossing/markings}", + "{@templates/crossing/geometry_line}" + ], + "moreFields": [ + "flashing_lights" + ], + "geometry": [ + "line" + ], + "tags": { + "highway": "path", + "path": "crossing", + "crossing": "marked" + }, + "addTags": { + "highway": "path", + "path": "crossing", + "crossing": "marked", + "crossing:markings": "yes" + }, + "reference": { + "key": "crossing", + "value": "marked" + }, + "name": "{highway/footway/crossing/uncontrolled}", + "searchable": false +} diff --git a/data/presets/highway/path/crossing/_traffic_signals.json b/data/presets/highway/path/crossing/_traffic_signals.json new file mode 100644 index 000000000..e9030a869 --- /dev/null +++ b/data/presets/highway/path/crossing/_traffic_signals.json @@ -0,0 +1,32 @@ +{ + "icon": "temaki-railway_signals", + "fields": [ + "{@templates/crossing/defaults}", + "{@templates/crossing/markings}", + "{@templates/crossing/traffic_signal}", + "{@templates/crossing/geometry_line}" + ], + "moreFields": [ + "{@templates/crossing/crossing/traffic_signal_more}" + ], + "geometry": [ + "line" + ], + "tags": { + "highway": "path", + "path": "crossing", + "crossing": "traffic_signals" + }, + "reference": { + "key": "crossing", + "value": "traffic_signals" + }, + "name": "Crossing With Pedestrian Signals", + "terms": [ + "crosswalk (lights)", + "pedestrian traffic lights", + "pedestrian traffic signals", + "pedestrian crossing (lights)" + ], + "searchable": false +} diff --git a/data/presets/highway/path/crossing/_uncontrolled.json b/data/presets/highway/path/crossing/_uncontrolled.json new file mode 100644 index 000000000..f002be614 --- /dev/null +++ b/data/presets/highway/path/crossing/_uncontrolled.json @@ -0,0 +1,32 @@ +{ + "icon": "temaki-pedestrian", + "fields": [ + "{@templates/crossing/defaults}", + "{@templates/crossing/markings_yes}", + "{@templates/crossing/geometry_line}" + ], + "moreFields": [ + "flashing_lights" + ], + "geometry": [ + "line" + ], + "tags": { + "highway": "path", + "path": "crossing", + "crossing": "uncontrolled" + }, + "reference": { + "key": "crossing", + "value": "uncontrolled" + }, + "terms": [ + "marked foot path crossing", + "marked crosswalk", + "marked pedestrian crosswalk", + "zebra crossing", + "crosswalk" + ], + "name": "Marked Crossing", + "searchable": false +} diff --git a/data/presets/highway/path/crossing/_unmarked.json b/data/presets/highway/path/crossing/_unmarked.json new file mode 100644 index 000000000..96cd8887a --- /dev/null +++ b/data/presets/highway/path/crossing/_unmarked.json @@ -0,0 +1,35 @@ +{ + "icon": "temaki-pedestrian", + "fields": [ + "{@templates/crossing/defaults}", + "{@templates/crossing/geometry_line}" + ], + "moreFields": [ + "flashing_lights" + ], + "geometry": [ + "line" + ], + "tags": { + "highway": "path", + "path": "crossing", + "crossing": "unmarked" + }, + "addTags": { + "highway": "path", + "path": "crossing", + "crossing": "unmarked", + "crossing:markings": "no" + }, + "reference": { + "key": "crossing", + "value": "unmarked" + }, + "terms": [ + "unmarked crosswalk", + "unmarked foot path crossing", + "unmarked pedestrian crossing" + ], + "name": "Unmarked Crossing", + "searchable": false +}