Skip to content

Commit

Permalink
Introduce bicycle_road presets with special access field
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Apr 29, 2024
1 parent 6de5f5f commit fa944f8
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 1 deletion.
23 changes: 23 additions & 0 deletions data/fields/access_vehicle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"key": "vehicle",
"type": "defaultCheck",
"label": "General vehicle access",
"geometry": [
"line"
],
"reference": {
"key": "access"
},
"strings": {
"options": {
"no": {
"title": "No vehicle allowed",
"description": "Access is prohibited for all vehicles"
},
"undefined": {
"title": "Other access restrictions",
"description": "Other access restrictions apply"
}
}
}
}
31 changes: 31 additions & 0 deletions data/presets/highway/bicycle_road/_path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"icon": "fas-biking",
"fields": [
"{highway/path}",
"access_vehicle"
],
"moreFields": [
"{highway/path}"
],
"geometry": [
"line"
],
"tags": {
"highway": "path",
"bicycle_road": "yes"
},
"addTags": {
"bicycle": "designated"
},
"reference": {
"key": "bicycle_road",
"value": "yes"
},
"terms": [
"road",
"street",
"bicycle_road"
],
"name": "Bicycle Road (Path)",
"searchable": false
}
31 changes: 31 additions & 0 deletions data/presets/highway/bicycle_road/_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"icon": "iD-highway-service",
"fields": [
"{highway/service}",
"access_vehicle"
],
"moreFields": [
"{highway/service}"
],
"geometry": [
"line"
],
"tags": {
"highway": "service",
"bicycle_road": "yes"
},
"addTags": {
"bicycle": "designated"
},
"reference": {
"key": "bicycle_road",
"value": "yes"
},
"terms": [
"road",
"street",
"bicycle_road"
],
"name": "Shared Bicycle Road (Service Road)",
"searchable": false
}
30 changes: 30 additions & 0 deletions data/presets/highway/bicycle_road/cycleway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"icon": "fas-biking",
"fields": [
"{highway/cycleway}",
"access_vehicle"
],
"moreFields": [
"{highway/cycleway}"
],
"geometry": [
"line"
],
"tags": {
"highway": "cycleway",
"bicycle_road": "yes"
},
"addTags": {
"bicycle": "designated"
},
"reference": {
"key": "bicycle_road",
"value": "yes"
},
"terms": [
"road",
"street",
"bicycle_road"
],
"name": "Bicycle Road (Cycleway)"
}
30 changes: 30 additions & 0 deletions data/presets/highway/bicycle_road/residential.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"icon": "iD-highway-residential",
"fields": [
"{highway/residential}",
"access_vehicle"
],
"moreFields": [
"{highway/residential}"
],
"geometry": [
"line"
],
"tags": {
"highway": "residential",
"bicycle_road": "yes"
},
"addTags": {
"bicycle": "designated"
},
"reference": {
"key": "bicycle_road",
"value": "yes"
},
"terms": [
"road",
"street",
"bicycle_road"
],
"name": "Shared Bicycle Road (Residential Road)"
}
4 changes: 3 additions & 1 deletion dist/preset_categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
"highway/unclassified",
"highway/residential",
"highway/living_street",
"highway/bicycle_road/cycleway",
"highway/bicycle_road/residential",
"highway/service",
"highway/track"
]
Expand Down Expand Up @@ -235,4 +237,4 @@
"barrier"
]
}
}
}

0 comments on commit fa944f8

Please sign in to comment.