mapcomplete/assets/layers/elongated_coin/elongated_coin.json
2023-09-02 13:57:26 +02:00

361 lines
No EOL
10 KiB
JSON

{
"id": "elongated_coin",
"name": {
"en": "Penny Presses",
"de": "Münzpressen",
"es": "Prensas de centavo"
},
"description": {
"en": "Layer showing penny presses.",
"de": "Ebene mit Münzpressen.",
"es": "Capa mostrando prensas de centavo."
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending=elongated_coin"
]
}
},
"title": {
"render": {
"en": "Penny Press",
"de": "Münzpresse",
"es": "Prensa de centavo"
}
},
"tagRenderings": [
"images",
"opening_hours_24_7",
{
"id": "designs",
"question": {
"en": "How many designs are available?",
"de": "Wieviele Motive sind verfügbar?",
"es": "Cuántos diseños son disponibles?"
},
"freeform": {
"key": "coin:design_count",
"type": "pnat",
"placeholder": {
"en": "Number of designs (e.g. 5)",
"de": "Motivanzahl (z.B. 5)",
"es": "Número de diseños (por ejemplo, 5)"
}
},
"render": {
"en": "This penny press has {coin:design_count} designs available.",
"de": "Die Münzpresse hat {coin:design_count} Motive zur Auswahl.",
"es": "Esta prensa tiene {coin:design_count} diseños disponibles."
},
"mappings": [
{
"if": "coin:design_count=1",
"then": {
"en": "This penny press has one design available.",
"de": "Die Münzpresse hat ein Motiv zur Auswahl.",
"es": "Esta prensa tiene un diseño disponible."
}
},
{
"if": "coin:design_count=2",
"then": {
"en": "This penny press has two designs available.",
"de": "Die Münzpresse hat zwei Motive zur Auswahl.",
"es": "Esta prensa tiene dos diseños disponibles."
}
},
{
"if": "coin:design_count=3",
"then": {
"en": "This penny press has three designs available.",
"de": "Die Münzpresse hat drei Motive zur Auswahl.",
"es": "Esta prensa tiene tres diseños disponibles."
}
},
{
"if": "coin:design_count=4",
"then": {
"en": "This penny press has four designs available.",
"de": "Die Münzpresse hat vier Motive zur Auswahl.",
"es": "Esta prensa tiene cuatro diseños disponibles."
}
}
]
},
{
"id": "fee",
"question": {
"en": "Does it cost money to press a penny?"
},
"mappings": [
{
"if": "fee=",
"then": {
"en": "It costs money to press a penny."
}
},
{
"if": "fee=yes",
"then": {
"en": "It costs money to press a penny."
}
},
{
"if": "fee=no",
"then": {
"en": "It is free to press a penny."
},
"addExtraTags": [
"payment:qr_code=",
"payment:coins=",
"payment:notes=",
"payment:debit_cards=",
"payment:credit_cards="
]
}
]
},
{
"builtin": "payment-options-split",
"override": {
"condition": {
"or": [
"fee=yes",
"fee="
]
}
}
},
{
"id": "coin",
"question": {
"en": "What coin is used for pressing?",
"de": "Welche Münze wird zum Pressen verwendet?",
"es": "Qué moneda se utiliza para presionar?"
},
"freeform": {
"key": "coin:type",
"type": "string",
"placeholder": {
"en": "Coin type (e.g. 10cent)",
"de": "Münzenart (z.B. 10 Cent)",
"es": "Tipo de moneda (por ejemplo, 10 centavos)"
}
},
"mappings": [
{
"if": "coin:type=2cent",
"then": {
"en": "This penny press uses a 2 cent coin for pressing.",
"de": "Die Münzpresse benötigt eine 2 Cent Münze um zu Pressen.",
"es": "Esta prensa de centavo utiliza una moneda de 2 centavos para presionar."
},
"hideInAnswer": {
"and": [
"_currency!~.*EUR.*",
"_currency!~.*USD.*"
]
}
},
{
"if": "coin:type=5cent",
"then": {
"en": "This penny press uses a 5 cent coin for pressing.",
"de": "Die Münzpresse benötigt eine 5 Cent Münze um zu Pressen.",
"es": "Esta prensa de centavo utiliza una moneda de 5 centavos para presionar."
},
"hideInAnswer": {
"and": [
"_currency!~.*EUR.*",
"_currency!~.*USD.*"
]
}
},
{
"if": "coin:type=10cent",
"then": {
"en": "This penny press uses a 10 cent coin for pressing.",
"de": "Die Münzpresse benötigt eine 10 Cent Münze um zu Pressen.",
"es": "Esta prensa de centavo utiliza una moneda de 10 centavos para presionar."
},
"hideInAnswer": {
"and": [
"_currency!~.*EUR.*",
"_currency!~.*USD.*"
]
}
},
{
"if": "coin:type=25cent",
"then": {
"en": "This penny press uses a 25 cent coin for pressing.",
"de": "Die Münzpresse benötigt eine 25 Cent Münze um zu Pressen.",
"es": "Esta prensa de centavo utiliza una moneda de 25 centavos para presionar."
},
"hideInAnswer": "_currency!~.*USD.*"
},
{
"if": "coin:type=50cent",
"then": {
"en": "This penny press uses a 50 cent coin for pressing.",
"de": "Die Münzpresse benötigt eine 50 Cent Münze um zu Pressen.",
"es": "Esta prensa de centavo utiliza una moneda de 50 centavos para presionar."
},
"hideInAnswer": "_currency!~.*USD.*"
},
{
"if": "coin:type=10centimes",
"then": {
"en": "This penny press uses a 10 centimes coin for pressing."
},
"hideInAnswer": "_currency!~.*CHF.*"
},
{
"if": "coin:type=20centimes",
"then": {
"en": "This penny press uses a 20 centimes coin for pressing."
},
"hideInAnswer": "_currency!~.*CHF.*"
}
],
"render": {
"en": "This penny press uses a {coin:type} coin for pressing.",
"de": "Die Münzpresse benötigt eine {coin:type} Münze um zu Pressen.",
"es": "Esta prensa de centavo utiliza una moneda {coin:type} para presionar."
}
},
"website",
{
"id": "charge",
"condition": {
"or": [
"fee=yes",
"fee="
]
},
"question": {
"en": "How much does it cost to press a penny?",
"de": "Wieviel kostet es eine Münze zu Pressen?",
"es": "¿Cuánto cuesta presionar un centavo?"
},
"freeform": {
"key": "charge",
"placeholder": {
"en": "Cost (e.g. 0.50 EUR)",
"de": "Einwurf (z.B. 0,5€)",
"fr": "Coût (par ex. 0.50 EUR)",
"es": "Costo (por ejemplo, 0.50 euros)"
}
},
"mappings": [
{
"if": "charge=1 EUR",
"then": {
"en": "It costs 1 euro to press a penny.",
"de": "Eine Münze zu Pressen kostet 1 Euro.",
"es": "Cuesta 1 euro para presionar un centavo."
},
"hideInAnswer": "_currency!~.*EUR.*"
},
{
"if": "charge=2 EUR",
"then": {
"en": "It costs 2 euros to press a penny.",
"de": "Eine Münze zu Pressen kostet 2€.",
"es": "Cuesta 2 euros para presionar un centavo."
},
"hideInAnswer": "_currency!~.*EUR.*"
},
{
"if": "charge=2 CHF",
"then": {
"en": "It costs 2 Swiss francs to press a penny."
},
"hideInAnswer": "_currency!~.*CHF.*"
},
{
"if": "charge=1 CHF",
"then": {
"en": "It costs 1 Swiss franc to press a penny."
},
"hideInAnswer": "_currency!~.*CHF.*"
}
],
"render": {
"en": "It costs {charge} to press a penny.",
"de": "Es kostet {charge}€ um eine Münze zu Pressen.",
"es": "Cuesta {charge} para presionar un centavo."
}
},
"denominations-coins",
{
"id": "indoor",
"question": {
"en": "Is the penny press indoors?",
"de": "Befindet sich die Münzpresse im Inneren?",
"es": "La prensa de centavo esta al interior?"
},
"mappings": [
{
"if": "indoor=yes",
"then": {
"en": "This penny press is located indoors.",
"de": "Die Münzpresse befindet sich im Inneren.",
"es": "Esta prensa está ubicada en interior."
}
},
{
"if": "indoor=no",
"then": {
"en": "This penny press is located outdoors.",
"de": "Die Münzpresse befindet sich Draußen.",
"es": "Esta prensa está ubicada al aire libre."
}
}
]
},
"level",
"check_date"
],
"mapRendering": [
{
"icon": "circle:#FFFFFF00;./assets/themes/elongated_coin/penny.svg",
"location": [
"point",
"centroid"
],
"iconBadges": [
{
"if": "opening_hours~*",
"then": "icons.isOpen"
}
]
}
],
"presets": [
{
"title": {
"en": "a penny press",
"de": "Eine Münzpresse",
"es": "una prensa de centavo"
},
"tags": [
"amenity=vending_machine",
"vending=elongated_coin",
"payment:coins=yes"
]
}
],
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": true
},
"deletion": true,
"filter": [
"open_now",
"accepts_debit_cards",
"accepts_credit_cards"
]
}