From 30a8be932d0a233e2c61f7511bff1c9f1571d9c8 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. The names are adapted from `presets/highway/cycleway/crossing/bicycle_foot.json`. The terms are removed because the presets are unsearchable. --- data/presets/highway/path/_crossing.json | 24 ++++++++++++++ .../highway/path/crossing/_marked.json | 31 +++++++++++++++++++ .../path/crossing/_traffic_signals.json | 26 ++++++++++++++++ .../highway/path/crossing/_uncontrolled.json | 25 +++++++++++++++ .../highway/path/crossing/_unmarked.json | 30 ++++++++++++++++++ 5 files changed, 136 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 00000000..d8997267 --- /dev/null +++ b/data/presets/highway/path/_crossing.json @@ -0,0 +1,24 @@ +{ + "icon": "temaki-cyclist_crosswalk", + "fields": [ + "{@templates/crossing/markings}", + "{@templates/crossing/defaults}", + "{@templates/crossing/geometry_line}" + ], + "geometry": [ + "line" + ], + "tags": { + "path": "crossing" + }, + "addTags": { + "highway": "path", + "path": "crossing" + }, + "reference": { + "key": "path", + "value": "crossing" + }, + "searchable": false, + "name": "Cycle & Foot Crossing" +} diff --git a/data/presets/highway/path/crossing/_marked.json b/data/presets/highway/path/crossing/_marked.json new file mode 100644 index 00000000..4a029c65 --- /dev/null +++ b/data/presets/highway/path/crossing/_marked.json @@ -0,0 +1,31 @@ +{ + "icon": "temaki-pedestrian_crosswalk", + "fields": [ + "{@templates/crossing/markings}", + "{@templates/crossing/defaults}", + "{@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/path/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 00000000..73c8fed6 --- /dev/null +++ b/data/presets/highway/path/crossing/_traffic_signals.json @@ -0,0 +1,26 @@ +{ + "icon": "temaki-railway_signals", + "fields": [ + "{@templates/crossing/markings}", + "{@templates/crossing/defaults}", + "{@templates/crossing/traffic_signal}", + "{@templates/crossing/geometry_line}" + ], + "moreFields": [ + "{@templates/crossing/traffic_signal_more}" + ], + "geometry": [ + "line" + ], + "tags": { + "highway": "path", + "path": "crossing", + "crossing": "traffic_signals" + }, + "reference": { + "key": "crossing", + "value": "traffic_signals" + }, + "name": "Crossing Cycle & Foot With Pedestrian Signals", + "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 00000000..69bd33f5 --- /dev/null +++ b/data/presets/highway/path/crossing/_uncontrolled.json @@ -0,0 +1,25 @@ +{ + "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" + }, + "name": "Marked Cycle & Foot 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 00000000..516d1ee6 --- /dev/null +++ b/data/presets/highway/path/crossing/_unmarked.json @@ -0,0 +1,30 @@ +{ + "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" + }, + "name": "Unmarked Cycle & Foot Crossing", + "searchable": false +}