Skip to content

Commit

Permalink
[regional] add support for moped ramps in the NL (closes #484)
Browse files Browse the repository at this point in the history
* adds NL-specific preset for "moped links" (highway=cycleway + bicycle=no + moped=designated)
* replace deprecation rule for `highway=cycleway` + `bicycle=no` with special "replacement" preset (which excludes the NL)
  • Loading branch information
tyrasd committed Jun 22, 2022
1 parent 3da4577 commit 5d1d761
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 4 deletions.
4 changes: 0 additions & 4 deletions data/deprecated.json
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,6 @@
"old": {"highway": "bridleway", "horse": "no"},
"replace": {"highway": "path", "horse": "no"}
},
{
"old": {"highway": "cycleway", "bicycle": "no"},
"replace": {"highway": "path", "bicycle": "no"}
},
{
"old": {"highway": "cycleway", "cycleway": "track"},
"replace": {"highway": "cycleway"}
Expand Down
18 changes: 18 additions & 0 deletions data/presets/highway/cycleway/_bicycle_no.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"locationSet": {
"exclude": [
"NL"
]
},
"geometry": [
"line"
],
"tags": {
"highway": "cycleway",
"bicycle": "no"
},
"searchable": false,
"matchScore": 1,
"name": "Cycleway (NO)",
"replacement": "highway/path/bicycle_no"
}
35 changes: 35 additions & 0 deletions data/presets/highway/cycleway/moped_link-NL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"locationSet": {
"include": [
"nl"
]
},
"icon": "fas-moped",
"fields": [
"name",
"oneway",
"surface",
"smoothness",
"width",
"structure",
"access",
"incline"
],
"geometry": [
"line"
],
"tags": {
"highway": "cycleway",
"bicycle": "no",
"moped": "designated"
},
"addTags": {
"highway": "cycleway",
"bicycle": "no",
"moped": "designated",
"foot": "no",
"mofa": "no"
},
"matchScore": 0.9,
"name": "Moped Link"
}
11 changes: 11 additions & 0 deletions data/presets/highway/path/_bicycle_no.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"geometry": [
"line"
],
"tags": {
"highway": "path",
"bicycle": "no"
},
"matchScore": 0,
"name": "Path"
}

0 comments on commit 5d1d761

Please sign in to comment.