Add filter, move free to filters.json

This commit is contained in:
Robin van der Linde 2023-06-27 21:29:41 +02:00
parent 337f91ef40
commit 51292cc529
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
3 changed files with 55 additions and 24 deletions

View file

@ -173,6 +173,27 @@
} }
} }
] ]
},
{
"id": "free",
"options": [
{
"question": {
"en": "Free to use",
"nl": "Gratis toegankelijk",
"de": "Nutzung kostenlos",
"fr": "Utilisation gratuite",
"da": "Gratis at bruge"
},
"osmTags": {
"or": [
"fee=no",
"fee=0",
"charge=0"
]
}
}
]
} }
] ]
} }

View file

@ -12,7 +12,19 @@
"en": "Shower" "en": "Shower"
} }
}, },
"presets": [], "presets": [
{
"title": {
"en": "a shower"
},
"description": {
"en": "A (public) shower"
},
"tags": [
"amenity=shower"
]
}
],
"tagRenderings": [ "tagRenderings": [
"images", "images",
"level", "level",
@ -118,7 +130,25 @@
} }
} }
], ],
"filter": [], "filter": [
"free",
{
"id": "hot-water",
"options": [
{
"question": {
"en": "Hot water available"
},
"osmTags": {
"or": [
"hot_water=yes",
"hot_water=fee"
]
}
}
]
}
],
"deletion": { "deletion": {
"softDeletionTags": { "softDeletionTags": {
"and": [ "and": [

View file

@ -646,27 +646,7 @@
} }
] ]
}, },
{ "free",
"id": "free",
"options": [
{
"question": {
"en": "Free to use",
"nl": "Gratis toegankelijk",
"de": "Nutzung kostenlos",
"fr": "Utilisation gratuite",
"da": "Gratis at bruge"
},
"osmTags": {
"or": [
"fee=no",
"fee=0",
"charge=0"
]
}
}
]
},
"open_now" "open_now"
], ],
"deletion": { "deletion": {