Skip to content

Commit

Permalink
Add preset for "Pedestrian Area" (highway=pedestrian + area=yes)
Browse files Browse the repository at this point in the history
(closes #4488)
  • Loading branch information
bhousel committed Oct 31, 2017
1 parent 98011b8 commit 7080661
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 12 deletions.
8 changes: 7 additions & 1 deletion data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3055,9 +3055,15 @@ en:
name: Path
# 'terms: hike,hiking,trackway,trail,walk'
terms: '<translate with synonyms or related terms for ''Path'', separated by commas>'
highway/pedestrian:
highway/pedestrian_area:
# 'highway=pedestrian, area=yes'
name: Pedestrian Area
# 'terms: center,centre,plaza,quad,square,walkway'
terms: '<translate with synonyms or related terms for ''Pedestrian Area'', separated by commas>'
highway/pedestrian_line:
# highway=pedestrian
name: Pedestrian Street
# 'terms: center,centre,plaza,quad,square,walkway'
terms: '<translate with synonyms or related terms for ''Pedestrian Street'', separated by commas>'
highway/primary:
# highway=primary
Expand Down
2 changes: 1 addition & 1 deletion data/presets/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"highway/footway",
"highway/cycleway",
"highway/bridleway",
"highway/pedestrian"
"highway/pedestrian_line"
]
},
"category-rail": {
Expand Down
2 changes: 1 addition & 1 deletion data/presets/categories/path.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"highway/footway",
"highway/cycleway",
"highway/bridleway",
"highway/pedestrian"
"highway/pedestrian_line"
]
}
41 changes: 37 additions & 4 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6993,7 +6993,34 @@
},
"name": "Path"
},
"highway/pedestrian": {
"highway/pedestrian_area": {
"icon": "poi-foot",
"fields": [
"name",
"surface",
"lit",
"width",
"structure",
"access"
],
"geometry": [
"area"
],
"tags": {
"highway": "pedestrian",
"area": "yes"
},
"terms": [
"center",
"centre",
"plaza",
"quad",
"square",
"walkway"
],
"name": "Pedestrian Area"
},
"highway/pedestrian_line": {
"icon": "highway-footway",
"fields": [
"name",
Expand All @@ -7005,13 +7032,19 @@
"access"
],
"geometry": [
"line",
"area"
"line"
],
"tags": {
"highway": "pedestrian"
},
"terms": [],
"terms": [
"center",
"centre",
"plaza",
"quad",
"square",
"walkway"
],
"name": "Pedestrian Street"
},
"highway/primary_link": {
Expand Down
27 changes: 27 additions & 0 deletions data/presets/presets/highway/pedestrian_area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"icon": "poi-foot",
"fields": [
"name",
"surface",
"lit",
"width",
"structure",
"access"
],
"geometry": [
"area"
],
"tags": {
"highway": "pedestrian",
"area": "yes"
},
"terms": [
"center",
"centre",
"plaza",
"quad",
"square",
"walkway"
],
"name": "Pedestrian Area"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@
"access"
],
"geometry": [
"line",
"area"
"line"
],
"tags": {
"highway": "pedestrian"
},
"terms": [],
"terms": [
"center",
"centre",
"plaza",
"quad",
"square",
"walkway"
],
"name": "Pedestrian Street"
}
4 changes: 4 additions & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,10 @@
"key": "highway",
"value": "path"
},
{
"key": "area",
"value": "yes"
},
{
"key": "highway",
"value": "pedestrian"
Expand Down
8 changes: 6 additions & 2 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3758,9 +3758,13 @@
"name": "Path",
"terms": "hike,hiking,trackway,trail,walk"
},
"highway/pedestrian": {
"highway/pedestrian_area": {
"name": "Pedestrian Area",
"terms": "center,centre,plaza,quad,square,walkway"
},
"highway/pedestrian_line": {
"name": "Pedestrian Street",
"terms": ""
"terms": "center,centre,plaza,quad,square,walkway"
},
"highway/primary_link": {
"name": "Primary Link",
Expand Down

0 comments on commit 7080661

Please sign in to comment.