Skip to content

Commit

Permalink
Test cycleway_lane tagging with separate fields
Browse files Browse the repository at this point in the history
We might want to use a directionalCombo for this. However, that would suggest to tag data for cycleway:left:lane=* when in fact there is no cycleway:left=lane. This tries to work around this by adding separate fields with re-conditions.
  • Loading branch information
tordans committed Apr 29, 2024
1 parent 6de5f5f commit 3948e35
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 0 deletions.
26 changes: 26 additions & 0 deletions data/fields/cycleway/both_lane.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"key": "cycleway:both:lane",
"prerequisiteTag": {
"key": "cycleway:both",
"value": "lane"
},
"type": "combo",
"label": "Cycle Lane Type (Both)",
"strings": {
"options": {
"exclusive": {
"title": "Exclusive cycle lane",
"description": "A cycle lane strictly reserved exclusively for cyclists, segregated from the car lanes, usually through a continuous line."
},
"advisory": {
"title": "Advisory cycle lane",
"description": "A cycle lane which is not reserved exclusively for cyclists."
}
}
},
"autoSuggestions": false,
"reference": {
"key": "cycleway:lane"
},
"terms": []
}
26 changes: 26 additions & 0 deletions data/fields/cycleway/left_lane.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"key": "cycleway:left:lane",
"prerequisiteTag": {
"key": "cycleway:left",
"value": "lane"
},
"type": "combo",
"label": "Cycle Lane Type (Left)",
"strings": {
"options": {
"exclusive": {
"title": "Exclusive cycle lane",
"description": "A cycle lane strictly reserved exclusively for cyclists, segregated from the car lanes, usually through a continuous line."
},
"advisory": {
"title": "Advisory cycle lane",
"description": "A cycle lane which is not reserved exclusively for cyclists."
}
}
},
"autoSuggestions": false,
"reference": {
"key": "cycleway:lane"
},
"terms": []
}
26 changes: 26 additions & 0 deletions data/fields/cycleway/right_lane.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"key": "cycleway:right:lane",
"prerequisiteTag": {
"key": "cycleway:right",
"value": "lane"
},
"type": "combo",
"label": "Cycle Lane Type (Right)",
"strings": {
"options": {
"exclusive": {
"title": "Exclusive cycle lane",
"description": "A cycle lane strictly reserved exclusively for cyclists, segregated from the car lanes, usually through a continuous line."
},
"advisory": {
"title": "Advisory cycle lane",
"description": "A cycle lane which is not reserved exclusively for cyclists."
}
}
},
"autoSuggestions": false,
"reference": {
"key": "cycleway:lane"
},
"terms": []
}
3 changes: 3 additions & 0 deletions data/presets/highway/primary.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"charge_toll",
"covered_no",
"cycleway",
"cycleway/both_lane",
"cycleway/left_lane",
"cycleway/right_lane",
"expressway-US",
"flood_prone",
"incline",
Expand Down
3 changes: 3 additions & 0 deletions data/presets/highway/primary_link.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"charge_toll",
"covered_no",
"cycleway",
"cycleway/both_lane",
"cycleway/left_lane",
"cycleway/right_lane",
"destination/symbol_oneway",
"flood_prone",
"incline",
Expand Down
3 changes: 3 additions & 0 deletions data/presets/highway/residential.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"covered_no",
"cycleway",
"bicycle_road",
"cycleway/both_lane",
"cycleway/left_lane",
"cycleway/right_lane",
"cyclestreet-BE-NL",
"flood_prone",
"incline",
Expand Down

0 comments on commit 3948e35

Please sign in to comment.