Split out layers, added parcel lockers

This commit is contained in:
Robin van der Linde 2022-08-11 12:52:26 +02:00
parent 56b1337743
commit f763a43f0c
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
11 changed files with 831 additions and 277 deletions

View file

@ -0,0 +1,13 @@
[
{
"path": "post_office.svg",
"license": "CC BY-SA 4.0",
"authors": [
"https://github.com/emojione/emojione/graphs/contributors"
],
"sources": [
"https://commons.wikimedia.org/wiki/File:Emojione_BW_1F3E4.svg",
"https://github.com/emojione/emojione/blob/2.2.7/assets/svg_bw/1f3e4.svg"
]
}
]

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg" width="375px" height="375px" viewBox="0 0 375 375" version="1.1">
<g id="surface1">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 36.4375 132.570312 L 58.414062 132.570312 L 58.414062 165.527344 L 36.441406 165.527344 Z M 36.4375 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 69.398438 132.570312 L 91.371094 132.570312 L 91.371094 165.527344 L 69.398438 165.527344 Z M 69.398438 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 118.835938 132.570312 L 140.804688 132.570312 L 140.804688 165.527344 L 118.835938 165.527344 Z M 118.835938 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 151.792969 132.570312 L 173.765625 132.570312 L 173.765625 165.527344 L 151.792969 165.527344 Z M 151.792969 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 201.234375 132.570312 L 223.207031 132.570312 L 223.207031 165.527344 L 201.234375 165.527344 Z M 201.234375 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 234.195312 132.570312 L 256.164062 132.570312 L 256.164062 165.527344 L 234.195312 165.527344 Z M 234.195312 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 283.628906 132.570312 L 305.601562 132.570312 L 305.601562 165.527344 L 283.628906 165.527344 Z M 283.628906 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 316.585938 132.570312 L 338.5625 132.570312 L 338.5625 165.527344 L 316.585938 165.527344 Z M 316.585938 132.570312 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 36.4375 198.484375 L 58.414062 198.484375 L 58.414062 231.445312 L 36.441406 231.445312 Z M 36.4375 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 69.398438 198.484375 L 91.371094 198.484375 L 91.371094 231.445312 L 69.398438 231.445312 Z M 69.398438 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 118.835938 198.484375 L 140.804688 198.484375 L 140.804688 231.445312 L 118.835938 231.445312 Z M 118.835938 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 151.792969 198.484375 L 173.765625 198.484375 L 173.765625 231.445312 L 151.792969 231.445312 Z M 151.792969 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 201.234375 198.484375 L 223.207031 198.484375 L 223.207031 231.445312 L 201.234375 231.445312 Z M 201.234375 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 234.195312 198.484375 L 256.164062 198.484375 L 256.164062 231.445312 L 234.195312 231.445312 Z M 234.195312 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 283.628906 198.484375 L 305.601562 198.484375 L 305.601562 231.445312 L 283.628906 231.445312 Z M 283.628906 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 316.585938 198.484375 L 338.5625 198.484375 L 338.5625 231.445312 L 316.585938 231.445312 Z M 316.585938 198.484375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 94.117188 286.375 L 127.078125 286.375 L 127.078125 319.335938 L 94.117188 319.335938 Z M 94.117188 286.375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 160.039062 275.390625 L 182.007812 275.390625 L 182.007812 302.859375 L 160.039062 302.859375 Z M 160.039062 275.390625 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 247.925781 286.375 L 280.886719 286.375 L 280.886719 319.335938 L 247.925781 319.335938 Z M 247.925781 286.375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 291.875 286.375 L 324.832031 286.375 L 324.832031 319.335938 L 291.875 319.335938 Z M 291.875 286.375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 50.175781 286.375 L 83.132812 286.375 L 83.132812 319.335938 L 50.171875 319.335938 Z M 50.175781 286.375 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 192.996094 275.390625 L 214.96875 275.390625 L 214.96875 302.859375 L 192.996094 302.859375 Z M 192.996094 275.390625 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 176.636719 64.910156 C 177.59375 65.148438 178.773438 65.226562 180.398438 65.226562 C 186.363281 65.226562 190.042969 61.984375 190.042969 56.546875 C 190.042969 51.65625 186.878906 48.738281 181.277344 48.738281 C 179 48.738281 177.460938 48.972656 176.640625 49.210938 L 176.640625 64.910156 Z M 176.636719 64.910156 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 219.898438 66.804688 C 219.898438 77.21875 224.453125 84.5625 231.972656 84.5625 C 239.5625 84.5625 243.898438 76.828125 243.898438 66.484375 C 243.898438 56.933594 239.632812 48.730469 231.898438 48.730469 C 224.308594 48.730469 219.894531 56.460938 219.894531 66.800781 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 363.28125 105.105469 L 363.28125 28.199219 C 363.28125 25.175781 360.808594 22.703125 357.785156 22.703125 L 352.289062 22.703125 L 352.289062 11.71875 L 22.703125 11.71875 L 22.703125 22.703125 L 17.214844 22.703125 C 14.191406 22.703125 11.71875 25.175781 11.71875 28.199219 L 11.71875 105.105469 C 11.71875 108.128906 14.191406 110.601562 17.214844 110.601562 L 17.214844 341.308594 C 14.191406 341.308594 11.71875 343.78125 11.71875 346.804688 L 11.71875 357.789062 C 11.71875 360.808594 14.191406 363.28125 17.214844 363.28125 L 357.789062 363.28125 C 360.808594 363.28125 363.28125 360.808594 363.28125 357.789062 L 363.28125 346.804688 C 363.28125 343.78125 360.808594 341.308594 357.785156 341.308594 L 357.785156 110.59375 C 360.808594 110.59375 363.28125 108.121094 363.28125 105.105469 M 28.203125 176.511719 L 28.203125 121.582031 L 346.804688 121.582031 L 346.804688 176.511719 L 28.203125 176.511719 M 346.804688 187.5 L 346.804688 242.429688 L 28.203125 242.429688 L 28.203125 187.5 L 346.804688 187.5 M 236.941406 341.308594 L 236.941406 275.390625 L 225.953125 275.390625 L 225.953125 341.308594 L 214.96875 341.308594 L 214.96875 313.839844 L 192.996094 313.839844 L 192.996094 341.308594 L 182.007812 341.308594 L 182.007812 313.839844 L 160.039062 313.839844 L 160.039062 341.308594 L 149.050781 341.308594 L 149.050781 275.390625 L 138.0625 275.390625 L 138.0625 341.308594 L 127.078125 341.308594 L 127.078125 330.320312 L 39.1875 330.320312 L 39.1875 275.390625 L 127.078125 275.390625 L 127.078125 253.417969 L 247.929688 253.417969 L 247.929688 275.390625 L 335.820312 275.390625 L 335.820312 330.320312 L 247.929688 330.320312 L 247.929688 341.308594 L 236.941406 341.308594 M 303.171875 50.15625 L 303.171875 40.046875 L 341.308594 40.046875 L 341.308594 50.15625 L 327.761719 50.15625 L 327.761719 93.246094 L 316.5 93.246094 L 316.5 50.15625 L 303.171875 50.15625 M 277.507812 70.910156 C 269.261719 67.832031 263.894531 62.933594 263.894531 55.207031 C 263.894531 46.128906 270.960938 39.179688 282.664062 39.179688 C 288.253906 39.179688 292.378906 40.441406 295.324219 41.863281 L 292.824219 51.574219 C 290.835938 50.542969 287.296875 49.046875 282.445312 49.046875 C 277.578125 49.046875 275.234375 51.414062 275.234375 54.175781 C 275.234375 57.566406 278.035156 59.066406 284.433594 61.675781 C 293.199219 65.144531 297.316406 70.042969 297.316406 77.535156 C 297.316406 86.453125 290.902344 94.03125 277.289062 94.03125 C 271.625 94.03125 266.023438 92.453125 263.234375 90.785156 L 265.511719 80.839844 C 268.542969 82.503906 273.175781 84.164062 277.957031 84.164062 C 283.109375 84.164062 285.832031 81.867188 285.832031 78.402344 C 285.828125 75.085938 283.476562 73.199219 277.507812 70.910156 M 255.746094 66.097656 C 255.746094 83.535156 245.882812 94.117188 231.382812 94.117188 C 216.65625 94.117188 208.050781 82.199219 208.050781 67.042969 C 208.050781 51.097656 217.546875 39.1875 232.191406 39.1875 C 247.4375 39.1875 255.746094 51.414062 255.746094 66.097656 M 201.160156 56.230469 C 201.160156 61.441406 199.539062 65.859375 196.59375 68.859375 C 192.773438 72.726562 187.101562 74.464844 180.476562 74.464844 C 179 74.464844 177.667969 74.378906 176.640625 74.226562 L 176.640625 93.246094 L 165.527344 93.246094 L 165.527344 40.761719 C 168.992188 40.136719 173.84375 39.660156 180.6875 39.660156 C 187.617188 39.660156 192.539062 41.085938 195.859375 43.925781 C 199.023438 46.605469 201.160156 51.023438 201.160156 56.230469 M 137.09375 44.941406 L 143.554688 44.941406 C 143.554688 75.128906 118.964844 99.609375 88.625 99.609375 C 58.285156 99.609375 33.691406 75.128906 33.691406 44.941406 L 59.550781 44.941406 C 59.550781 50.507812 60.75 55.78125 62.871094 60.5625 C 63.949219 45.542969 76.488281 33.691406 91.847656 33.691406 C 107.917969 33.691406 120.9375 46.644531 120.9375 62.625 C 120.9375 68.941406 118.875 74.765625 115.429688 79.527344 C 128.257812 73.234375 137.09375 60.128906 137.09375 44.941406 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 91.851562 43.328125 C 81.171875 43.328125 72.460938 51.976562 72.460938 62.625 C 72.460938 73.28125 81.164062 81.917969 91.851562 81.917969 C 102.554688 81.917969 111.246094 73.28125 111.246094 62.625 C 111.242188 51.976562 102.554688 43.328125 91.851562 43.328125 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.8 KiB

View file

@ -0,0 +1,431 @@
{
"id": "postoffices",
"name": {
"en": "Post offices",
"de": "Poststellen",
"ru": "Почтовые отделения",
"zh_Hant": "郵局",
"id": "Kantor pos",
"hu": "Posták",
"nl": "Postkantoren",
"ca": "Oficines de correus",
"es": "Oficinas de correo",
"fr": "Bureaux de poste",
"nb_NO": "Postkontor"
},
"minzoom": 12,
"source": {
"osmTags": {
"or": [
"amenity=post_office",
"post_office=post_partner"
]
}
},
"title": {
"render": {
"en": "Post Office",
"de": "Poststelle",
"ru": "Почтовое отделение",
"zh_Hant": "郵局",
"id": "Kantor Pos",
"hu": "Posta",
"nl": "Postkantoor",
"ca": "Oficina de correus",
"es": "Oficina de Correo",
"fr": "Bureau de poste",
"nb_NO": "Postkontor"
},
"mappings": [
{
"if": {
"and": [
"post_office=post_partner",
"name="
]
},
"then": {
"en": "Post partner at a shop",
"de": "Postfiliale im Einzelhandel",
"nl": "Postpartner in een winkel"
}
},
{
"if": {
"and": [
"post_office=post_partner",
"name~*"
]
},
"then": {
"en": "Post partner at {name}",
"de": "Postfiliale im {name}"
}
}
]
},
"description": {
"en": "A layer showing post offices.",
"de": "Eine Ebene mit Postämtern.",
"zh_Hant": "圖層顯示郵局。",
"id": "Layer yang menunjukkan kantor pos.",
"hu": "Postákat megjelenítő réteg.",
"nl": "Een laag die postkantoren toont.",
"es": "Una capa que muestra oficinas de correo.",
"fr": "Un claque montrant les bureaux de poste.",
"nb_NO": "Et lag som viser postkontor."
},
"tagRenderings": [
"images",
{
"id": "minimap",
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
},
{
"render": {
"en": "Opening Hours: {opening_hours_table()}",
"ru": "Часы работы: {opening_hours_table()}",
"zh_Hant": "開放時間:{opening_hours_table()}",
"id": "Jam Buka: {opening_hours_table()}",
"hu": "Nyitva tartás: {opening_hours_table()}",
"de": "Öffnungszeiten: {opening_hours_table()}",
"es": "Horas de Apertura: {opening_hours_table()}",
"nb_NO": "Åpningstider: {opening_hours_table()}",
"nl": "Openingsuren: {opening_hours_table()}",
"fr": "Heures douverture : {opening_hours_table()}"
},
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
},
"question": {
"en": "What are the opening hours for this post office?",
"zh_Hant": "這間郵局的開放時間是?",
"id": "Jam berapa kantor pos ini buka?",
"hu": "Mikor van nyitva ez a posta?",
"de": "Wie sind die Öffnungszeiten dieser Poststelle?",
"es": "¿Cuáles son las horas de apertura para esta oficina de correos?",
"nl": "Wat zijn de openingsuren voor dit postkantoor?",
"fr": "Quelles sont les heures douverture de ce bureau de poste ?"
},
"mappings": [
{
"if": "opening_hours=24/7",
"then": {
"en": "24/7 opened (including holidays)",
"de": "durchgehend geöffnet (auch an Feiertagen)",
"zh_Hant": "24/7 開放 (包括假日)",
"id": "Buka 24 jam (termasuk hari libur)",
"hu": "Éjjel-nappal nyitva (munkaszüneti napokon is)",
"es": "Abierta 24/7 (incluyendo festivos)",
"nl": "24/7 open (ook tijdens feestdagen)",
"fr": "Ouvert 24h/24 (jours fériés compris)",
"nb_NO": "Døgnåpent (inkludert helligdager)"
}
}
],
"id": "OH"
},
{
"id": "post_partner",
"question": {
"en": "Is this a post partner?"
},
"condition": "post_office=post_partner",
"mappings": [
{
"if": "post_office=post_partner",
"then": {
"en": "This shop is a post partner"
}
},
{
"if": "post_office=",
"then": {
"en": "This shop is not a post partner"
},
"addExtraTags": [
"was:post_office=post_partner"
]
}
]
},
{
"id": "partner-brand",
"render": {
"en": "This location offers services for {post_office:brand}"
},
"question": {
"en": "For which brand does this location offer services?"
},
"condition": "post_office=post_partner",
"freeform": {
"key": "post_office:brand",
"type": "string"
},
"multiAnswer": true,
"mappings": [
{
"if": "post_office:brand=DHL",
"then": {
"en": "This location offers services for DHL"
},
"hideInAnswer": "_country=de"
},
{
"if": "post_office:brand=DPD",
"then": {
"en": "This location offers services for DPD"
}
},
{
"if": "post_office:brand=GLS",
"then": {
"en": "This location offers services for GLS"
}
},
{
"if": "post_office:brand=UPS",
"then": {
"en": "This location offers services for UPS"
}
},
{
"if": "post_office:brand=DHL Paketshop",
"then": {
"en": "This location is a DHL Paketshop"
},
"hideInAnswer": "_country!=de"
},
{
"if": "post_office:brand=Hermes PaketShop",
"then": {
"en": "This location is a Hermes PaketShop"
},
"hideInAnswer": "_country!=de"
},
{
"if": "post_office:brand=PostNL",
"then": {
"en": "This location is a PostNL-point"
},
"hideInAnswer": {
"and": [
"_country!=nl",
"_country!=be"
]
}
},
{
"if": "post_office:brand=bpost",
"then": {
"en": "This location offers services for bpost"
},
"hideInAnswer": "_country!=be"
}
]
},
{
"id": "letter-from",
"render": {
"en": "You can post letters with these companies: {post_office:letter_from}"
},
"question": {
"en": "Can you post a letter here?"
},
"freeform": {
"key": "post_office:letter_from",
"type": "string"
},
"mappings": [
{
"if": "post_office:letter_from=yes",
"then": {
"en": "You can post letters here"
}
},
{
"if": "post_office:letter_from=no",
"then": {
"en": "You can't post letters here"
}
}
]
},
{
"id": "parcel-from",
"render": {
"en": "You can post parcels with these companies: {post_office:parcel_from}"
},
"question": {
"en": "Can you send a parcel here?"
},
"freeform": {
"key": "post_office:parcel_from",
"type": "string"
},
"mappings": [
{
"if": "post_office:parcel_from=yes",
"then": {
"en": "You can send parcels here"
}
},
{
"if": "post_office:parcel_from=no",
"then": {
"en": "You can't send parcels here"
}
}
]
},
{
"id": "parcel-pickup",
"render": {
"en": "You can pick up parcels from these companies: {post_office:parcel_pickup}"
},
"question": {
"en": "Can you pick up missed parcels here?"
},
"freeform": {
"key": "post_office:parcel_pickup",
"type": "string"
},
"mappings": [
{
"if": "post_office:parcel_pickup=yes",
"then": {
"en": "You can pick up missed parcels here"
}
},
{
"if": "post_office:parcel_pickup=no",
"then": {
"en": "You can't pick up missed parcels here"
}
}
]
},
{
"id": "parcel-to",
"render": {
"en": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}"
},
"question": {
"en": "Can you send parcels to here for pickup?"
},
"freeform": {
"key": "post_office:parcel_to",
"type": "string"
},
"mappings": [
{
"if": "post_office:parcel_to=yes",
"then": {
"en": "You can send parcels to here for pickup"
}
},
{
"if": "post_office:parcel_to=no",
"then": {
"en": "You can't send parcels to here for pickup"
}
}
]
},
{
"id": "stamps",
"render": {
"en": "You can buy stamps from companies: {post_office:stamps}"
},
"question": {
"en": "Can you buy stamps here?"
},
"freeform": {
"key": "post_office:stamps",
"type": "string"
},
"mappings": [
{
"if": "post_office:stamps=yes",
"then": {
"en": "You can buy stamps here"
}
},
{
"if": "post_office:stamps=no",
"then": {
"en": "You can't buy stamps here"
}
}
]
}
],
"presets": [
{
"tags": [
"amenity=post_office"
],
"title": {
"en": "a post office",
"de": "eine Poststelle",
"ru": "Почтовое отделение",
"zh_Hant": "郵局",
"id": "Kantor Pos",
"hu": "Posta",
"nl": "een postkantoor",
"ca": "una oficina de correus",
"es": "una oficina de correo",
"nb_NO": "et postkontor",
"fr": "un bureau de poste"
}
}
],
"filter": [
{
"id": "is_open",
"options": [
{
"question": {
"en": "Currently open",
"de": "Aktuell geöffnet",
"zh_Hant": "目前開放",
"id": "Saat ini buka",
"hu": "Most nyitva",
"nl": "Momenteel geopend",
"ca": "Actualment obert",
"es": "Actualmente abierta",
"fr": "Ouvert actuellement"
},
"osmTags": "_isOpen=yes"
}
]
}
],
"mapRendering": [
{
"icon": {
"render": "square:white;./assets/layers/postoffices/post_office.svg"
},
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
},
{
"if": "shop~*",
"then": "./assets/themes/shops/shop.svg"
}
],
"iconSize": "40,40,center",
"location": [
"point",
"centroid"
]
},
{
"color": "#DADADA",
"width": "1"
}
]
}