Skip to content

Commit

Permalink
Adapt capacity tags for camp sites etc. (#107)
Browse files Browse the repository at this point in the history
* Add capacity:* tags for tourism=camp_site.

* Use capacity:caravans for tourism=caravan_site.

* Use distinct capacity tags for tourism=camp_site.

* upgrade capacity fields to regular fields


Co-authored-by: Martin Raifer <martin@raifer.tech>
  • Loading branch information
jonsger and tyrasd authored Dec 15, 2021
1 parent 4e60539 commit 1ce208b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
7 changes: 7 additions & 0 deletions data/fields/capacity/caravans.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"key": "capacity:caravans",
"type": "number",
"minValue": 0,
"label": "Capacity (Caravans)",
"placeholder": "10, 20, 50..."
}
7 changes: 7 additions & 0 deletions data/fields/capacity/persons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"key": "capacity:persons",
"type": "number",
"minValue": 0,
"label": "Capacity (Persons)",
"placeholder": "50, 100, 200..."
}
11 changes: 11 additions & 0 deletions data/fields/capacity/tents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"key": "capacity:tents",
"type": "number",
"minValue": 0,
"label": "Capacity (Tents)",
"placeholder": "10, 20, 50...",
"prerequisiteTag": {
"key": "tents",
"valueNot": "no"
}
}
4 changes: 3 additions & 1 deletion data/presets/tourism/camp_site.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"operator",
"address",
"access_simple",
"capacity",
"capacity/caravans",
"capacity/persons",
"capacity/tents",
"fee",
"payment_multi_fee",
"charge_fee"
Expand Down
2 changes: 1 addition & 1 deletion data/presets/tourism/caravan_site.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"fields": [
"name",
"address",
"capacity",
"capacity/caravans",
"sanitary_dump_station",
"power_supply",
"internet_access",
Expand Down

0 comments on commit 1ce208b

Please sign in to comment.