Skip to content

Commit

Permalink
Add traffic_sign=DE:240 presets
Browse files Browse the repository at this point in the history
- only for Germany, since it's a German traffic sign
- one preset for the tagging in combination with `highway=path`, which is dominant (25k) and one un-searchable for `highway=cycleway` (3k) https://taginfo.openstreetmap.org/tags/?key=traffic_sign&value=DE%3A240#combinations
- the unsearchable uses the same `fields+moreFields` as the main preset
- the `imageUrl` (https://github.com/ideditor/schema-builder/blob/main/schemas/preset.json#L62-L65) is the traffic sign from https://wiki.openstreetmap.org/wiki/DE:Tag:traffic_sign%3DDE:240
- the presets match on the two main tags and add the `addTags` or suggest to do so
- should a mapper switch the preset back to something else, `removeTags` should remove the special tags that the mapper should re-add manually
- the list of `fields+moreFields` are optimized for Germany: name move to moreFields (not commonly present on cycleways), segregated was added, sort order was changed for logical groups
- the cycleway with `highway=path`-preset it still in the cycleway-folder, to keep them together
  • Loading branch information
tordans committed Jan 10, 2022
1 parent 87d0f79 commit 0d90338
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
30 changes: 30 additions & 0 deletions data/presets/highway/cycleway/_cycleway-traffic-sign-DE-240.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"locationSet": {
"include": ["DE"]
},
"icon": "fas-biking",
"imageURL": "https://upload.wikimedia.org/wikipedia/commons/0/08/Zeichen_240_-_Gemeinsamer_Fu%C3%9F-_und_Radweg%2C_StVO_1992.svg",
"fields": ["{highway/cycleway/path-traffic-sign-DE-240}"],
"moreFields": ["{highway/cycleway/path-traffic-sign-DE-240}"],
"geometry": ["line"],
"tags": {
"highway": "cycleway",
"traffic_sign": "DE:240"
},
"addTags": {
"bicycle": "designated",
"foot": "designated",
"segregated": "no"
},
"removeTags": {
"bicycle": "designated",
"foot": "designated",
"segregated": "no"
},
"terms": [],
"name": "Cycle & Foot Path (Traffic sign DE:240)",
"reference": {
"key": "traffic_sign",
"value": "DE:240"
}
}
50 changes: 50 additions & 0 deletions data/presets/highway/cycleway/path-traffic-sign-DE-240.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"locationSet": {
"include": ["DE"]
},
"searchable": false,
"icon": "fas-biking",
"imageURL": "https://upload.wikimedia.org/wikipedia/commons/0/08/Zeichen_240_-_Gemeinsamer_Fu%C3%9F-_und_Radweg%2C_StVO_1992.svg",
"fields": [
"surface",
"smoothness",
"segregated",
"access",
"oneway",
"width",
"structure",
"incline"
],
"moreFields": [
"name",
"covered_no",
"dog",
"lit",
"maxspeed",
"maxweight_bridge",
"not/name",
"stroller",
"wheelchair"
],
"geometry": ["line"],
"tags": {
"highway": "path",
"traffic_sign": "DE:240"
},
"addTags": {
"bicycle": "designated",
"foot": "designated",
"segregated": "no"
},
"removeTags": {
"bicycle": "designated",
"foot": "designated",
"segregated": "no"
},
"terms": [],
"name": "Cycle & Foot Path (Traffic sign DE:240)",
"reference": {
"key": "traffic_sign",
"value": "DE:240"
}
}

0 comments on commit 0d90338

Please sign in to comment.