Skip to content

Commit

Permalink
Add translatable options for Swimming Pool field; add preset for Hot …
Browse files Browse the repository at this point in the history
…Tub (#1008)
  • Loading branch information
arch0345 authored Feb 5, 2024
1 parent 08bd117 commit b526b49
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data/deprecated.json
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,10 @@
"old": {"leisure": "recreation_ground"},
"replace": {"landuse": "recreation_ground"}
},
{
"old": {"leisure": "swimming_pool", "swimming_pool": "hot_tub"},
"replace": {"leisure": "hot_tub"}
},
{
"old": {"leisure": "table_tennis_table"},
"replace": {"leisure": "pitch", "sport": "table_tennis"}
Expand Down
16 changes: 15 additions & 1 deletion data/fields/swimming_pool.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{
"key": "swimming_pool",
"type": "combo",
"label": "Type"
"label": "Type",
"strings": {
"options": {
"swimming": "Lap Pool",
"plunge": "Diving",
"wading": "Wading / Leisure",
"spa": "Spa",
"wave_pool": "Wave Pool",
"lazy_river": "Lazy River",
"personal": "Personal / Backyard",
"kids": "Kids Pool"
}
},
"autoSuggestions": false,
"customValues": true
}
27 changes: 27 additions & 0 deletions data/presets/leisure/hot_tub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"icon": "fas-hot-tub-person",
"fields": [
"access_simple",
"location_pool"
],
"moreFields": [
"level",
"gender",
"lit",
"nudism",
"opening_hours",
"operator"
],
"geometry": [
"area",
"point"
],
"terms": [
"jacuzzi",
"spa"
],
"tags": {
"leisure": "hot_tub"
},
"name": "Hot Tub"
}

0 comments on commit b526b49

Please sign in to comment.