Updated attraction presets to use field inheritance

Added generic attraction preset with attraction typeCombo field
This commit is contained in:
Quincy Morgan
2019-01-15 15:28:01 -05:00
parent 20553dc977
commit 512dfaa52c
21 changed files with 75 additions and 77 deletions

View File

@@ -199,6 +199,9 @@ en:
atm:
# atm=*
label: ATM
attraction:
# attraction=*
label: Type
backrest:
# backrest=*
label: Backrest
@@ -3014,6 +3017,9 @@ en:
# 'area:highway=*'
name: Road Surface
terms: '<translate with synonyms or related terms for ''Road Surface'', separated by commas>'
attraction:
# attraction=*
name: Attraction
attraction/amusement_ride:
# attraction=amusement_ride
name: Amusement Ride

View File

@@ -22,6 +22,7 @@
"artist": {"key": "artist_name", "type": "text", "label": "Artist"},
"artwork_type": {"key": "artwork_type", "type": "combo", "label": "Type"},
"atm": {"key": "atm", "type": "check", "label": "ATM"},
"attraction": {"key": "attraction", "type": "typeCombo", "label": "Type"},
"backrest": {"key": "backrest", "type": "check", "label": "Backrest"},
"barrier": {"key": "barrier", "type": "typeCombo", "label": "Type"},
"basin": {"key": "basin", "type": "combo", "label": "Type"},

View File

@@ -0,0 +1,5 @@
{
"key": "attraction",
"type": "typeCombo",
"label": "Type"
}

View File

@@ -3,6 +3,7 @@
"aerialway": {"fields": ["aerialway"], "geometry": ["point", "vertex", "line"], "tags": {"aerialway": "*"}, "terms": ["ski lift", "funifor", "funitel"], "searchable": false, "name": "Aerialway"},
"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": ["address", "opening_hours", "fee"], "geometry": ["point", "vertex", "line", "area"], "tags": {"attraction": "*"}, "searchable": false, "name": "Attraction"},
"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"},
@@ -209,21 +210,21 @@
"amenity/watering_place": {"icon": "maki-drinking-water", "geometry": ["area", "vertex", "point"], "tags": {"amenity": "watering_place"}, "name": "Animal Watering Place"},
"area": {"fields": ["name"], "geometry": ["area"], "tags": {"area": "yes"}, "name": "Area", "matchScore": 0.1},
"area/highway": {"fields": ["name", "area/highway"], "geometry": ["area"], "tags": {"area:highway": "*"}, "name": "Road Surface"},
"attraction/amusement_ride": {"icon": "maki-amusement-park", "fields": ["name", "operator", "opening_hours"], "geometry": ["point", "area"], "terms": ["theme park", "carnival ride"], "tags": {"attraction": "amusement_ride"}, "name": "Amusement Ride"},
"attraction/amusement_ride": {"icon": "maki-amusement-park", "geometry": ["point", "area"], "terms": ["theme park", "carnival ride"], "tags": {"attraction": "amusement_ride"}, "name": "Amusement Ride"},
"attraction/animal": {"icon": "maki-zoo", "fields": ["name", "operator"], "geometry": ["point", "area"], "terms": ["zoo", "theme park", "animal park", "lion", "tiger", "bear"], "tags": {"attraction": "animal"}, "name": "Animal"},
"attraction/big_wheel": {"icon": "maki-amusement-park", "fields": ["name", "operator", "height", "opening_hours"], "geometry": ["point"], "terms": ["ferris wheel", "theme park", "amusement ride"], "tags": {"attraction": "big_wheel"}, "name": "Big Wheel"},
"attraction/bumper_car": {"icon": "maki-car", "fields": ["name", "operator", "opening_hours"], "geometry": ["point", "area"], "terms": ["theme park", "dodgem cars", "autoscooter"], "tags": {"attraction": "bumper_car"}, "name": "Bumper Car"},
"attraction/bungee_jumping": {"icon": "maki-pitch", "fields": ["name", "operator", "height", "opening_hours"], "geometry": ["point", "area"], "terms": ["theme park", "bungy jumping", "jumping platform"], "tags": {"attraction": "bungee_jumping"}, "name": "Bungee Jumping"},
"attraction/carousel": {"icon": "maki-horse-riding", "fields": ["name", "operator", "opening_hours"], "geometry": ["point", "area"], "terms": ["theme park", "roundabout", "merry-go-round", "galloper", "jumper", "horseabout", "flying horses"], "tags": {"attraction": "carousel"}, "name": "Carousel"},
"attraction/dark_ride": {"icon": "maki-rail-metro", "fields": ["name", "operator", "opening_hours"], "geometry": ["point", "line", "area"], "terms": ["theme park", "ghost train"], "tags": {"attraction": "dark_ride"}, "name": "Dark Ride"},
"attraction/drop_tower": {"icon": "temaki-tower", "fields": ["name", "operator", "height", "opening_hours"], "geometry": ["point", "area"], "terms": ["theme park", "amusement ride", "gondola", "tower", "big drop"], "tags": {"attraction": "drop_tower"}, "name": "Drop Tower"},
"attraction/maze": {"icon": "maki-amusement-park", "fields": ["name", "operator"], "geometry": ["point", "area"], "terms": ["theme park", "amusement ride", "labyrinth"], "tags": {"attraction": "maze"}, "name": "Maze"},
"attraction/pirate_ship": {"icon": "maki-danger", "fields": ["name", "operator", "opening_hours"], "geometry": ["point"], "terms": ["theme park", "carnival ride", "amusement ride"], "tags": {"attraction": "pirate_ship"}, "name": "Pirate Ship"},
"attraction/river_rafting": {"icon": "maki-ferry", "fields": ["name", "operator", "opening_hours"], "geometry": ["point", "line"], "terms": ["theme park", "aquatic park", "water park", "rafting simulator", "river rafting ride", "river rapids ride"], "tags": {"attraction": "river_rafting"}, "name": "River Rafting"},
"attraction/roller_coaster": {"icon": "maki-amusement-park", "fields": ["name", "operator", "opening_hours"], "geometry": ["point", "area"], "terms": ["theme park", "amusement ride"], "tags": {"attraction": "roller_coaster"}, "name": "Roller Coaster"},
"attraction/summer_toboggan": {"fields": ["name", "operator", "opening_hours"], "geometry": ["line"], "terms": ["alpine slide", "mountain coaster"], "tags": {"attraction": "summer_toboggan"}, "name": "Summer Toboggan"},
"attraction/train": {"icon": "maki-rail", "fields": ["name", "operator", "fee", "opening_hours"], "geometry": ["point", "line"], "terms": ["theme park", "rackless train", "road train", "Tschu-Tschu train", "dotto train", "park train"], "tags": {"attraction": "train"}, "name": "Tourist Train"},
"attraction/water_slide": {"icon": "maki-swimming", "fields": ["name", "operator", "opening_hours"], "geometry": ["line", "area"], "terms": ["theme park", "aquatic park", "water park", "flumes", "water chutes", "hydroslides"], "tags": {"attraction": "water_slide"}, "name": "Water Slide"},
"attraction/big_wheel": {"icon": "maki-amusement-park", "fields": ["{attraction}", "height"], "geometry": ["point"], "terms": ["ferris wheel", "theme park", "amusement ride"], "tags": {"attraction": "big_wheel"}, "name": "Big Wheel"},
"attraction/bumper_car": {"icon": "maki-car", "geometry": ["point", "area"], "terms": ["theme park", "dodgem cars", "autoscooter"], "tags": {"attraction": "bumper_car"}, "name": "Bumper Car"},
"attraction/bungee_jumping": {"icon": "maki-pitch", "fields": ["{attraction}", "height"], "geometry": ["point", "area"], "terms": ["theme park", "bungy jumping", "jumping platform"], "tags": {"attraction": "bungee_jumping"}, "name": "Bungee Jumping"},
"attraction/carousel": {"icon": "maki-horse-riding", "geometry": ["point", "area"], "terms": ["theme park", "roundabout", "merry-go-round", "galloper", "jumper", "horseabout", "flying horses"], "tags": {"attraction": "carousel"}, "name": "Carousel"},
"attraction/dark_ride": {"icon": "maki-rail-metro", "geometry": ["point", "line", "area"], "terms": ["theme park", "ghost train"], "tags": {"attraction": "dark_ride"}, "name": "Dark Ride"},
"attraction/drop_tower": {"icon": "temaki-tower", "fields": ["{attraction}", "height"], "geometry": ["point", "area"], "terms": ["theme park", "amusement ride", "gondola", "tower", "big drop"], "tags": {"attraction": "drop_tower"}, "name": "Drop Tower"},
"attraction/maze": {"icon": "maki-amusement-park", "geometry": ["point", "area"], "terms": ["theme park", "amusement ride", "labyrinth"], "tags": {"attraction": "maze"}, "name": "Maze"},
"attraction/pirate_ship": {"icon": "maki-danger", "geometry": ["point"], "terms": ["theme park", "carnival ride", "amusement ride"], "tags": {"attraction": "pirate_ship"}, "name": "Pirate Ship"},
"attraction/river_rafting": {"icon": "maki-ferry", "geometry": ["point", "line"], "terms": ["theme park", "aquatic park", "water park", "rafting simulator", "river rafting ride", "river rapids ride"], "tags": {"attraction": "river_rafting"}, "name": "River Rafting"},
"attraction/roller_coaster": {"icon": "maki-amusement-park", "geometry": ["point", "area"], "terms": ["theme park", "amusement ride"], "tags": {"attraction": "roller_coaster"}, "name": "Roller Coaster"},
"attraction/summer_toboggan": {"geometry": ["line"], "terms": ["alpine slide", "mountain coaster"], "tags": {"attraction": "summer_toboggan"}, "name": "Summer Toboggan"},
"attraction/train": {"icon": "maki-rail", "fields": ["{attraction}", "fee"], "geometry": ["point", "line"], "terms": ["theme park", "rackless train", "road train", "Tschu-Tschu train", "dotto train", "park train"], "tags": {"attraction": "train"}, "name": "Tourist Train"},
"attraction/water_slide": {"icon": "maki-swimming", "fields": ["{attraction}", "height"], "geometry": ["line", "area"], "terms": ["theme park", "aquatic park", "water park", "flumes", "water chutes", "hydroslides"], "tags": {"attraction": "water_slide"}, "name": "Water Slide"},
"barrier": {"icon": "maki-roadblock", "moreFields": ["material"], "geometry": ["point", "vertex", "line", "area"], "tags": {"barrier": "*"}, "fields": ["barrier"], "name": "Barrier", "matchScore": 0.4},
"barrier/entrance": {"icon": "maki-entrance-alt1", "geometry": ["vertex"], "tags": {"barrier": "entrance"}, "name": "Entrance", "searchable": false},
"barrier/block": {"icon": "maki-roadblock", "fields": ["access"], "moreFields": ["material"], "geometry": ["point", "vertex"], "tags": {"barrier": "block"}, "name": "Block"},

View File

@@ -0,0 +1,25 @@
{
"icon": "maki-star",
"fields": [
"name",
"attraction",
"operator",
"opening_hours"
],
"moreFields": [
"address",
"opening_hours",
"fee"
],
"geometry": [
"point",
"vertex",
"line",
"area"
],
"tags": {
"attraction": "*"
},
"searchable": false,
"name": "Attraction"
}

View File

@@ -1,10 +1,5 @@
{
"icon": "maki-amusement-park",
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"point",
"area"

View File

@@ -1,10 +1,8 @@
{
"icon": "maki-amusement-park",
"fields": [
"name",
"operator",
"height",
"opening_hours"
"{attraction}",
"height"
],
"geometry": [
"point"

View File

@@ -1,10 +1,5 @@
{
"icon": "maki-car",
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"point",
"area"

View File

@@ -1,10 +1,8 @@
{
"icon": "maki-pitch",
"fields": [
"name",
"operator",
"height",
"opening_hours"
"{attraction}",
"height"
],
"geometry": [
"point",

View File

@@ -1,10 +1,5 @@
{
"icon": "maki-horse-riding",
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"point",
"area"

View File

@@ -1,10 +1,5 @@
{
"icon": "maki-rail-metro",
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"point",
"line",

View File

@@ -1,10 +1,8 @@
{
"icon": "temaki-tower",
"fields": [
"name",
"operator",
"height",
"opening_hours"
"{attraction}",
"height"
],
"geometry": [
"point",

View File

@@ -1,9 +1,5 @@
{
"icon": "maki-amusement-park",
"fields": [
"name",
"operator"
],
"geometry": [
"point",
"area"

View File

@@ -1,10 +1,5 @@
{
"icon": "maki-danger",
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"point"
],

View File

@@ -1,10 +1,5 @@
{
"icon": "maki-ferry",
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"point",
"line"

View File

@@ -1,10 +1,5 @@
{
"icon": "maki-amusement-park",
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"point",
"area"

View File

@@ -1,9 +1,4 @@
{
"fields": [
"name",
"operator",
"opening_hours"
],
"geometry": [
"line"
],

View File

@@ -1,10 +1,8 @@
{
"icon": "maki-rail",
"fields": [
"name",
"operator",
"fee",
"opening_hours"
"{attraction}",
"fee"
],
"geometry": [
"point",

View File

@@ -1,9 +1,8 @@
{
"icon": "maki-swimming",
"fields": [
"name",
"operator",
"opening_hours"
"{attraction}",
"height"
],
"geometry": [
"line",

View File

@@ -26,6 +26,12 @@
"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": "junction",
"value": "circular",

View File

@@ -1990,6 +1990,9 @@
"atm": {
"label": "ATM"
},
"attraction": {
"label": "Type"
},
"backrest": {
"label": "Backrest"
},
@@ -3575,6 +3578,10 @@
"name": "Amenity",
"terms": ""
},
"attraction": {
"name": "Attraction",
"terms": ""
},
"circular": {
"name": "Traffic Circle",
"terms": ""