Skip to content

Commit

Permalink
Merge pull request #5301 from quincylvania/pool-location-and-length-f…
Browse files Browse the repository at this point in the history
…ields

Adds Location and Length fields to the Swimming Pool preset
  • Loading branch information
bhousel authored Sep 8, 2018
2 parents 0737499 + 5a6744b commit f982296
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 6 deletions.
13 changes: 13 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,16 @@ en:
location:
# location=*
label: Location
location_pool:
# location=*
label: Location
options:
# location=indoor
indoor: Indoor
# location=outdoor
outdoor: Outdoor
# location=roof
roof: Rooftop
man_made:
# man_made=*
label: Type
Expand Down Expand Up @@ -1509,6 +1519,9 @@ en:
surveillance/zone:
# 'surveillance:zone=*'
label: Surveillance Zone
swimming_pool:
# swimming_pool=*
label: Type
switch:
# switch=*
label: Type
Expand Down
2 changes: 2 additions & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
"level": {"key": "level", "type": "combo", "label": "Level", "universal": true},
"levels": {"key": "building:levels", "type": "number", "minValue": 0, "label": "Levels", "placeholder": "2, 4, 6..."},
"lit": {"key": "lit", "type": "check", "label": "Lit"},
"location_pool": {"key": "location", "type": "typeCombo", "label": "Location", "strings": {"options": {"outdoor": "Outdoor", "indoor": "Indoor", "roof": "Rooftop"}}},
"location": {"key": "location", "type": "combo", "label": "Location"},
"man_made": {"key": "man_made", "type": "typeCombo", "label": "Type"},
"manhole": {"key": "manhole", "type": "typeCombo", "label": "Type"},
Expand Down Expand Up @@ -269,6 +270,7 @@
"surveillance": {"key": "surveillance", "type": "combo", "label": "Surveillance Kind"},
"surveillance/type": {"key": "surveillance:type", "type": "combo", "label": "Surveillance Type", "strings": {"options": {"camera": "Camera", "guard": "Guard", "ALPR": "Automatic License Plate Reader"}}},
"surveillance/zone": {"key": "surveillance:zone", "type": "combo", "label": "Surveillance Zone"},
"swimming_pool": {"key": "swimming_pool", "type": "combo", "label": "Type"},
"switch": {"key": "switch", "type": "combo", "label": "Type", "strings": {"options": {"mechanical": "Mechanical", "circuit_breaker": "Circuit Breaker", "disconnector": "Disconnector", "earthing": "Earthing"}}},
"tactile_paving": {"key": "tactile_paving", "type": "check", "label": "Tactile Paving"},
"takeaway": {"key": "takeaway", "type": "combo", "label": "Takeaway", "placeholder": "Yes, No, Takeaway Only...", "strings": {"options": {"yes": "Yes", "no": "No", "only": "Takeaway Only"}}},
Expand Down
12 changes: 12 additions & 0 deletions data/presets/fields/location_pool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"key": "location",
"type": "typeCombo",
"label": "Location",
"strings": {
"options": {
"outdoor": "Outdoor",
"indoor": "Indoor",
"roof": "Rooftop"
}
}
}
5 changes: 5 additions & 0 deletions data/presets/fields/swimming_pool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "swimming_pool",
"type": "combo",
"label": "Type"
}
10 changes: 5 additions & 5 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
"leisure/sports_centre": {"icon": "maki-pitch", "fields": ["name", "sport", "building", "address", "opening_hours"], "geometry": ["point", "area"], "tags": {"leisure": "sports_centre"}, "terms": [], "name": "Sports Center / Complex"},
"leisure/sports_centre/swimming": {"icon": "maki-swimming", "fields": ["name", "access_simple", "operator", "address", "building"], "geometry": ["point", "area"], "terms": ["dive", "water"], "tags": {"leisure": "sports_centre", "sport": "swimming"}, "reference": {"key": "sport", "value": "swimming"}, "name": "Swimming Pool Facility"},
"leisure/stadium": {"icon": "maki-pitch", "fields": ["name", "sport", "address"], "geometry": ["point", "area"], "tags": {"leisure": "stadium"}, "name": "Stadium"},
"leisure/swimming_pool": {"icon": "maki-swimming", "fields": ["name", "access_simple", "operator", "address", "lit"], "geometry": ["point", "area"], "terms": ["dive", "water", "aquatics"], "tags": {"leisure": "swimming_pool"}, "name": "Swimming Pool"},
"leisure/swimming_pool": {"icon": "maki-swimming", "fields": ["name", "access_simple", "operator", "address", "lit", "location_pool", "length", "swimming_pool"], "geometry": ["point", "area"], "terms": ["dive", "water", "aquatics"], "tags": {"leisure": "swimming_pool"}, "name": "Swimming Pool"},
"leisure/track": {"icon": "iD-highway-road", "fields": ["surface", "sport_racing_nonmotor", "lit", "width", "lanes"], "geometry": ["point", "line", "area"], "tags": {"leisure": "track"}, "terms": ["cycle", "dog", "greyhound", "horse", "race*", "track"], "name": "Racetrack (Non-Motorsport)"},
"leisure/water_park": {"icon": "maki-swimming", "fields": ["name", "operator", "address"], "geometry": ["point", "area"], "terms": ["swim", "pool", "dive"], "tags": {"leisure": "water_park"}, "name": "Water Park"},
"line": {"fields": ["name"], "geometry": ["line"], "tags": {}, "name": "Line", "matchScore": 0.1},
Expand Down Expand Up @@ -2794,10 +2794,10 @@
"leisure/sports_centre/ДЮСШ": {"tags": {"name": "ДЮСШ", "leisure": "sports_centre"}, "name": "ДЮСШ", "icon": "maki-pitch", "geometry": ["point", "area"], "fields": ["name", "sport", "building", "address", "opening_hours"], "suggestion": true},
"leisure/sports_centre/Ледовый дворец": {"tags": {"name": "Ледовый дворец", "leisure": "sports_centre"}, "name": "Ледовый дворец", "icon": "maki-pitch", "geometry": ["point", "area"], "fields": ["name", "sport", "building", "address", "opening_hours"], "suggestion": true},
"leisure/sports_centre/体育館": {"tags": {"name": "体育館", "leisure": "sports_centre"}, "name": "体育館", "icon": "maki-pitch", "geometry": ["point", "area"], "fields": ["name", "sport", "building", "address", "opening_hours"], "suggestion": true},
"leisure/swimming_pool/Schwimmerbecken": {"tags": {"name": "Schwimmerbecken", "leisure": "swimming_pool"}, "name": "Schwimmerbecken", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit"], "suggestion": true},
"leisure/swimming_pool/Yüzme Havuzu": {"tags": {"name": "Yüzme Havuzu", "leisure": "swimming_pool"}, "name": "Yüzme Havuzu", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit"], "suggestion": true},
"leisure/swimming_pool/プール": {"tags": {"name": "プール", "leisure": "swimming_pool"}, "name": "プール", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit"], "suggestion": true},
"leisure/swimming_pool/游泳池": {"tags": {"name": "游泳池", "leisure": "swimming_pool"}, "name": "游泳池", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit"], "suggestion": true},
"leisure/swimming_pool/Schwimmerbecken": {"tags": {"name": "Schwimmerbecken", "leisure": "swimming_pool"}, "name": "Schwimmerbecken", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit", "location_pool", "length", "swimming_pool"], "suggestion": true},
"leisure/swimming_pool/Yüzme Havuzu": {"tags": {"name": "Yüzme Havuzu", "leisure": "swimming_pool"}, "name": "Yüzme Havuzu", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit", "location_pool", "length", "swimming_pool"], "suggestion": true},
"leisure/swimming_pool/プール": {"tags": {"name": "プール", "leisure": "swimming_pool"}, "name": "プール", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit", "location_pool", "length", "swimming_pool"], "suggestion": true},
"leisure/swimming_pool/游泳池": {"tags": {"name": "游泳池", "leisure": "swimming_pool"}, "name": "游泳池", "icon": "maki-swimming", "geometry": ["point", "area"], "fields": ["name", "access_simple", "operator", "address", "lit", "location_pool", "length", "swimming_pool"], "suggestion": true},
"man_made/windmill/De Hoop": {"tags": {"name": "De Hoop", "man_made": "windmill"}, "name": "De Hoop", "icon": "temaki-windmill", "geometry": ["point", "area"], "fields": ["building_area"], "suggestion": true},
"shop/alcohol/Alko": {"tags": {"name": "Alko", "shop": "alcohol"}, "name": "Alko", "icon": "maki-alcohol-shop", "geometry": ["point", "area"], "fields": ["name", "operator", "address", "building_area", "opening_hours", "payment_multi", "drive_through"], "suggestion": true},
"shop/alcohol/BC Liquor Store": {"tags": {"name": "BC Liquor Store", "shop": "alcohol"}, "name": "BC Liquor Store", "icon": "maki-alcohol-shop", "geometry": ["point", "area"], "fields": ["name", "operator", "address", "building_area", "opening_hours", "payment_multi", "drive_through"], "suggestion": true},
Expand Down
5 changes: 4 additions & 1 deletion data/presets/presets/leisure/swimming_pool.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"access_simple",
"operator",
"address",
"lit"
"lit",
"location_pool",
"length",
"swimming_pool"
],
"geometry": [
"point",
Expand Down
4 changes: 4 additions & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6718,6 +6718,9 @@
{"key": "level", "description": "Level"},
{"key": "building:levels", "description": "Levels"},
{"key": "lit", "description": "Lit"},
{"key": "location", "value": "outdoor", "description": "Location"},
{"key": "location", "value": "indoor", "description": "Location"},
{"key": "location", "value": "roof", "description": "Location"},
{"key": "location", "description": "Location"},
{"key": "map_size", "description": "Coverage"},
{"key": "map_type", "description": "Type"},
Expand Down Expand Up @@ -7058,6 +7061,7 @@
"description": "Surveillance Type"
},
{"key": "surveillance:zone", "description": "Surveillance Zone"},
{"key": "swimming_pool", "description": "Type"},
{"key": "switch", "value": "mechanical", "description": "Type"},
{"key": "switch", "value": "circuit_breaker", "description": "Type"},
{"key": "switch", "value": "disconnector", "description": "Type"},
Expand Down
11 changes: 11 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,14 @@
"lit": {
"label": "Lit"
},
"location_pool": {
"label": "Location",
"options": {
"outdoor": "Outdoor",
"indoor": "Indoor",
"roof": "Rooftop"
}
},
"location": {
"label": "Location"
},
Expand Down Expand Up @@ -2728,6 +2736,9 @@
"surveillance/zone": {
"label": "Surveillance Zone"
},
"swimming_pool": {
"label": "Type"
},
"switch": {
"label": "Type",
"options": {
Expand Down

0 comments on commit f982296

Please sign in to comment.