Skip to content

Commit

Permalink
Add unsearchable Boundary preset for boundary=* (close #5975)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Feb 25, 2019
1 parent c062f91 commit 4d9d0fb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3274,6 +3274,9 @@ en:
# barrier=wall
name: Wall
terms: '<translate with synonyms or related terms for ''Wall'', separated by commas>'
boundary:
# boundary=*
name: Boundary
boundary/administrative:
# boundary=administrative
name: Administrative Boundary
Expand Down
1 change: 1 addition & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"aeroway": {"icon": "maki-airport", "fields": ["aeroway"], "geometry": ["point", "vertex", "line", "area"], "tags": {"aeroway": "*"}, "searchable": false, "name": "Aeroway"},
"amenity": {"fields": ["amenity"], "geometry": ["point", "vertex", "area"], "tags": {"amenity": "*"}, "searchable": false, "name": "Amenity"},
"attraction": {"icon": "maki-star", "fields": ["name", "attraction", "operator", "opening_hours"], "moreFields": ["opening_hours", "fee", "payment_multi", "address", "website", "phone", "email", "fax"], "geometry": ["point", "vertex", "line", "area"], "tags": {"attraction": "*"}, "searchable": false, "name": "Attraction"},
"boundary": {"fields": ["boundary"], "geometry": ["line"], "tags": {"boundary": "*"}, "searchable": false, "name": "Boundary"},
"circular": {"geometry": ["vertex", "line"], "fields": ["name"], "tags": {"junction": "circular"}, "name": "Traffic Circle", "searchable": false},
"embankment": {"geometry": ["line"], "tags": {"embankment": "yes"}, "name": "Embankment", "matchScore": 0.2, "searchable": false},
"highway": {"fields": ["name", "highway"], "geometry": ["point", "vertex", "line", "area"], "tags": {"highway": "*"}, "searchable": false, "name": "Highway"},
Expand Down
13 changes: 13 additions & 0 deletions data/presets/presets/_boundary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"fields": [
"boundary"
],
"geometry": [
"line"
],
"tags": {
"boundary": "*"
},
"searchable": false,
"name": "Boundary"
}
2 changes: 1 addition & 1 deletion data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{"key": "aeroway", "description": "🄿 Aeroway (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/airport-15.svg?sanitize=true"},
{"key": "amenity", "description": "🄿 Amenity (unsearchable), 🄵 Type", "object_types": ["node", "area"]},
{"key": "attraction", "description": "🄿 Attraction (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/star-15.svg?sanitize=true"},
{"key": "boundary", "description": "🄿 Boundary (unsearchable), 🄵 Type", "object_types": ["way"]},
{"key": "junction", "value": "circular", "description": "🄿 Traffic Circle (unsearchable), 🄵 Junction", "object_types": ["node", "way"]},
{"key": "embankment", "value": "yes", "description": "🄿 Embankment (unsearchable)", "object_types": ["way"]},
{"key": "highway", "description": "🄿 Highway (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"]},
Expand Down Expand Up @@ -1122,7 +1123,6 @@
{"key": "board_type", "description": "🄵 Type"},
{"key": "booth", "description": "🄵 Booth"},
{"key": "boules", "description": "🄵 Type"},
{"key": "boundary", "description": "🄵 Type"},
{"key": "brand", "description": "🄵 Brand"},
{"key": "brewery", "description": "🄵 Draft Beers"},
{"key": "bridge", "description": "🄵 Type, 🄵 Structure"},
Expand Down
4 changes: 4 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3865,6 +3865,10 @@
"name": "Attraction",
"terms": ""
},
"boundary": {
"name": "Boundary",
"terms": ""
},
"circular": {
"name": "Traffic Circle",
"terms": ""
Expand Down

0 comments on commit 4d9d0fb

Please sign in to comment.