mapcomplete/assets/layers/parcel_lockers/parcel_lockers.json
2022-10-30 20:20:11 +01:00

259 lines
7.2 KiB
JSON

{
"id": "parcel_lockers",
"name": {
"en": "Parcel Lockers",
"de": "Paketschließfächer",
"nl": "Pakketautomaten"
},
"description": {
"en": "Layer showing parcel lockers for collecting and sending parcels.",
"de": "Ebene mit Paketschließfächern zum Abholen und Versenden von Paketen.",
"nl": "Laag met pakketautomaten voor het ophalen en verzenden van paketten."
},
"minzoom": 12,
"source": {
"osmTags": {
"or": [
"amenity=parcel_locker",
{
"and": [
"amenity=vending_machine",
"vending=parcel_pickup;parcel_mail_in"
]
}
]
}
},
"presets": [
{
"title": {
"en": "a parcel locker",
"nl": "een pakketautomaat",
"de": "ein Paketschließfach"
},
"preciseInput": {
"preferredBackground": "photo"
},
"tags": [
"amenity=parcel_locker"
]
}
],
"title": {
"render": {
"en": "Parcel Locker",
"de": "Paketschließfach",
"nl": "Pakketautomaat"
},
"mappings": [
{
"if": "brand~*",
"then": {
"en": "{brand} parcel locker",
"de": "{brand} Paketschließfach",
"nl": "{brand} pakketautomaat"
}
}
]
},
"tagRenderings": [
"images",
{
"id": "brand",
"question": {
"en": "What is the brand of the parcel locker?",
"de": "Welche Marke hat das Paketschließfach?",
"nl": "Wat is het merk van deze pakketautomaat?"
},
"freeform": {
"key": "brand",
"type": "string",
"placeholder": {
"en": "Brand",
"de": "Marke",
"nl": "Merk"
}
},
"mappings": [
{
"if": "brand=Amazon Locker",
"then": {
"en": "This is an Amazon Locker",
"de": "Dies ist ein Amazon Locker",
"nl": "Dit is een Amazon Locker"
},
"addExtraTags": [
"brand:wikidata=Q16974764",
"brand:wikipedia=en:Amazon Locker",
"operator=Amazon"
]
},
{
"if": "brand=DHL Packstation",
"then": {
"en": "This is a DHL Packstation",
"de": "Dies ist eine DHL-Packstation",
"nl": "Dit is een DHL Packstation"
},
"addExtraTags": [
"brand:wikidata=Q1766703",
"brand:wikipedia=de:Packstation",
"operator=DHL"
],
"hideInAnswer": "_country!=de"
},
{
"if": "brand=Pickup Station",
"then": {
"en": "This is a DPD Pickup Station",
"de": "Dies ist eine DPD Pickup Station",
"nl": "Dit is een DPD Pickup Station"
},
"addExtraTags": [
"operator=DPD"
],
"hideInAnswer": "_country!=pl"
},
{
"if": "brand=PostNL",
"then": {
"en": "This is a PostNL Parcel Locker",
"nl": "Dit is een PostNL pakketautomaat",
"de": "Dies ist ein PostNL-Paketschließfach"
},
"addExtraTags": [
"operator=PostNL"
],
"hideInAnswer": "_country!=nl"
}
],
"render": {
"en": "This is a {brand} parcel locker",
"de": "Dies ist ein Paketschließfach von {brand}",
"nl": "Dit is een {brand} pakketautomaat"
}
},
{
"id": "operator",
"question": {
"en": "What is the operator of the parcel locker?",
"de": "Was ist der Betreiber des Paketschließfachs?",
"nl": "Wat is de beheerder van deze pakketautomaat?"
},
"freeform": {
"key": "operator",
"type": "string",
"placeholder": {
"en": "Operator",
"de": "Betreiber",
"nl": "Beheerder"
}
},
"render": {
"en": "This parcel locker is operated by {operator}",
"de": "Dieses Paketschließfach wird von {operator} betrieben",
"nl": "Deze pakketautomaat wordt beheerd door {operator}"
}
},
"opening_hours_24_7",
{
"id": "ref",
"question": {
"en": "What is the reference number/identifier of this parcel locker?",
"de": "Wie lautet die Referenznummer/Kennung dieses Paketschließfachs?",
"nl": "Wat is het referentienummer/identificator van deze pakketautomaat?"
},
"freeform": {
"key": "ref",
"type": "string",
"placeholder": {
"en": "Reference",
"de": "Referenz",
"nl": "Referentie"
}
},
"render": {
"en": "This parcel locker has the reference {ref}",
"de": "Dieses Paketschließfach hat die Kennnummer {ref}",
"nl": "Deze pakketautomaat heeft de referentie {ref}"
}
},
{
"id": "mail-in",
"question": {
"en": "Can you send packages from this parcel locker?",
"de": "Können Sie von diesem Paketschließfach aus Pakete versenden?",
"nl": "Kan je pakketten versturen vanuit deze pakketautomaat?"
},
"mappings": [
{
"if": "parcel_mail_in=yes",
"then": {
"en": "You can send packages from this parcel locker",
"de": "Sie können Pakete von diesem Paketschließfach aus versenden",
"nl": "Je kan pakketten versturen vanuit deze pakketautomaat"
}
},
{
"if": "parcel_mail_in=no",
"then": {
"en": "You <b>can't</b> send packages from this parcel locker",
"de": "Sie können <b>keine</b> Pakete von diesem Paketschließfach aus versenden",
"nl": "Je kan <b>geen</b> pakketten versturen vanuit deze pakketautomaat"
}
}
],
"condition": "amenity=parcel_locker"
},
{
"id": "pickup",
"question": {
"en": "Can you pick up packages from this parcel locker?",
"de": "Können Sie Pakete aus diesem Paketschließfach abholen?",
"nl": "Kan je pakketten ophalen bij deze pakketautomaat?"
},
"mappings": [
{
"if": "parcel_pickup=yes",
"then": {
"en": "You can pick up packages from this parcel locker",
"de": "Sie können Pakete von diesem Paketschließfach abholen",
"nl": "Je kan pakketten ophalen bij deze pakketautomaat"
}
},
{
"if": "parcel_pickup=no",
"then": {
"en": "You <b>can't</b> pick up packages from this parcel locker",
"de": "Sie können <b>keine</b> Pakete von diesem Paketschließfach abholen",
"nl": "Je kan <b>geen</b> pakketten ophalen bij deze pakketautomaat"
}
}
],
"condition": "amenity=parcel_locker"
}
],
"filter": [
"open_now"
],
"allowMove": {
"enableImproveAccuracy": true
},
"deletion": true,
"mapRendering": [
{
"icon": "square:white;./assets/layers/parcel_lockers/parcel_lockers.svg",
"iconBadges": [
{
"if": "opening_hours~*",
"then": "isOpen"
}
],
"iconSize": "40,40,center",
"location": [
"point",
"centroid"
]
}
]
}