Pubs and cafes
This commit is contained in:
parent
37f27bf58f
commit
907f58c56b
7 changed files with 268 additions and 27 deletions
138
assets/layers/cafe_pub/cafe_pub.json
Normal file
138
assets/layers/cafe_pub/cafe_pub.json
Normal file
|
@ -0,0 +1,138 @@
|
|||
{
|
||||
"id": "cafe_pub",
|
||||
"name": {
|
||||
"nl": "Cafés",
|
||||
"en": "Cafés and pubs"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"or": [
|
||||
"amenity=bar",
|
||||
"amenity=pub",
|
||||
"amenity=cafe",
|
||||
"amenity=biergarten"
|
||||
]
|
||||
}
|
||||
},
|
||||
"wayHandling": 1,
|
||||
"icon": {
|
||||
"render": "circle:white;./assets/layers/cafe_pub/pub.svg",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "amenity=cafe",
|
||||
"then": "circle:white;./assets/layers/cafe_pub/cafe.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"iconOverlays": [
|
||||
{
|
||||
"if": "opening_hours~*",
|
||||
"then": "isOpen",
|
||||
"badge": true
|
||||
}
|
||||
],
|
||||
"label": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"presets": [
|
||||
],
|
||||
"title": {
|
||||
"render": {
|
||||
"nl": "Café"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"name~*"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "<i>{name}</i>",
|
||||
"en": "<i>{name}</i>"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
{
|
||||
"#": "Name",
|
||||
"question": {
|
||||
"nl": "Wat is de naam van dit café?",
|
||||
"en": "What is the name of this pub?"
|
||||
},
|
||||
"render": {
|
||||
"nl": "De naam van dit café is {name}",
|
||||
"en": "This pub is named {name}"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"#": "Classification",
|
||||
"question": {
|
||||
"en": "What kind of cafe is this",
|
||||
"nl": "Welk soort café is dit?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "amenity=pub",
|
||||
"then": {
|
||||
"nl": "Dit is <b>een bruin café of een kroeg</b> waar voornamelijk bier wordt gedronken. De inrichting is typisch gezellig met veel houtwerk "
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "amenity=bar",
|
||||
"then": {
|
||||
"nl": "Dit is een <b>bar</b> waar men ter plaatse alcoholische drank nuttigt. De inrichting is typisch modern en commercieel, soms met lichtinstallatie en feestmuziek"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "amenity=cafe",
|
||||
"then": {
|
||||
"nl": "Dit is een <b>cafe</b> - een plaats waar men rustig kan zitten om een thee, koffie of alcoholische drank te nuttigen."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "amenity=restaurant",
|
||||
"then": {
|
||||
"nl": "Dit is een <b>restaurant</b> waar men een maaltijd geserveerd krijgt"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "amenity=biergarten",
|
||||
"then": {
|
||||
"nl": "Een open ruimte waar bier geserveerd wordt. Typisch in Duitsland"
|
||||
},
|
||||
"hideInAnswer": "_country!=de"
|
||||
}
|
||||
]
|
||||
},
|
||||
"opening_hours",
|
||||
"website",
|
||||
"email",
|
||||
"phone",
|
||||
"payment-options",
|
||||
"wheelchair-access"
|
||||
],
|
||||
"filter": [
|
||||
{
|
||||
"options": [
|
||||
{
|
||||
"question": {
|
||||
"en": "Opened now",
|
||||
"nl": "Nu geopened"
|
||||
},
|
||||
"osmTags": "_isOpen=yes"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue