Add parking ticket machines and note denominations

This commit is contained in:
Robin van der Linde 2023-01-29 15:13:32 +01:00
parent 99ff878afe
commit b5c0607724
No known key found for this signature in database
GPG key ID: 53956B3252478F0D
14 changed files with 1410 additions and 2 deletions

View file

@ -0,0 +1,12 @@
[
{
"path": "parking_tickets.svg",
"license": "CC0",
"authors": [
"Jérémy Ragusa"
],
"sources": [
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/parking_tickets.svg"
]
}
]

View file

@ -0,0 +1,79 @@
{
"id": "parking_ticket_machine",
"name": {
"en": "Parking Ticket Machines",
"nl": "Parkeerkaartautomaten"
},
"description": {
"en": "Layer with parking ticket machines to pay for parking.",
"nl": "Laag met parkeerkaartautomaten om voor parkeren te betalen."
},
"title": {
"render": {
"en": "Parking Ticket Machine",
"nl": "Parkeerkaartautomaat"
}
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending=parking_tickets"
]
}
},
"minzoom": 16,
"presets": [
{
"tags": [
"amenity=vending_machine",
"vending=parking_tickets"
],
"title": {
"en": "a parking ticket machine",
"nl": "een parkeerkaartautomaat"
}
}
],
"tagRenderings": [
"images",
"payment-options-split",
"denominations-coins",
"denominations-notes",
{
"id": "ref",
"question": {
"en": "What is the reference number of this parking ticket machine?",
"nl": "Wat is het referentienummer van deze parkeerkaartautomaat?"
},
"freeform": {
"key": "ref",
"type": "string",
"placeholder": {
"en": "Reference number",
"nl": "Referentienummer"
}
},
"render": {
"en": "This parking ticket machine has the reference number {ref}",
"nl": "Deze parkeerkaartautomaat heeft het referentienummer {ref}"
},
"mappings": [
{
"if": "noref=yes",
"then": {
"en": "This parking ticket machine has no reference number",
"nl": "Deze parkeerkaartautomaat heeft geen referentienummer"
}
}
]
}
],
"mapRendering": [
{
"location": ["point", "centroid"],
"icon": "square:white;./assets/layers/parking_ticket_machine/parking_tickets.svg",
"iconSize": "20,20,center"
}
]
}

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
<path d="m0,0 v3 h1 v-2 h12 v2 h1 v-3 z m3,2 v12 h3 v-1 a1,1 0 0 1 2,0 v1 h3 v-12 h-1 v11 h-1 a2,2 0 0 0 -4,0 h-1 v-11 z m2,2 v6 h1 v-2.5 h1.6666 c 1.7777,0 1.7777,-3.5 0,-3.5 z m1,0.875 h1.4453 c0.9364,0 0.9364,1.75 0,1.75 h-1.4453 z"/>
</svg>

After

Width:  |  Height:  |  Size: 330 B

View file

@ -66,7 +66,8 @@
]
},
"payment-options-split",
"denominations-coins"
"denominations-coins",
"denominations-notes"
],
"presets": [
{

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 234 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 109 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 121 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 118 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 118 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 107 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 186 KiB

View file

@ -1,4 +1,15 @@
[
{
"path": "100euro.svg",
"license": "CC0",
"authors": [
"OpenClipart",
"frankes"
],
"sources": [
"https://openclipart.org/detail/311346/worksheet-100-euro-coloured"
]
},
{
"path": "10cent.svg",
"license": "CC0",
@ -10,6 +21,17 @@
"https://openclipart.org/detail/311337/worksheet-10-cent-coloured"
]
},
{
"path": "10euro.svg",
"license": "CC0",
"authors": [
"OpenClipart",
"frankes"
],
"sources": [
"https://openclipart.org/detail/311343/worksheet-10-euro-coloured"
]
},
{
"path": "1cent.svg",
"license": "CC0",
@ -32,6 +54,17 @@
"https://openclipart.org/detail/311340/worksheet-1-euro-coloured"
]
},
{
"path": "200euro.svg",
"license": "CC0",
"authors": [
"OpenClipart",
"frankes"
],
"sources": [
"https://openclipart.org/detail/311347/worksheet-200-euro-coloured"
]
},
{
"path": "20cent.svg",
"license": "CC0",
@ -43,6 +76,17 @@
"https://openclipart.org/detail/311338/worksheet-20-cent-coloured"
]
},
{
"path": "20euro.svg",
"license": "CC0",
"authors": [
"OpenClipart",
"frankes"
],
"sources": [
"https://openclipart.org/detail/311344/worksheet-20-euro-coloured"
]
},
{
"path": "2cent.svg",
"license": "CC0",
@ -65,6 +109,17 @@
"https://openclipart.org/detail/311341/worksheet-2-euro-coloured"
]
},
{
"path": "500euro.svg",
"license": "CC0",
"authors": [
"OpenClipart",
"frankes"
],
"sources": [
"https://openclipart.org/detail/311348/worksheet-500-euro-coloured"
]
},
{
"path": "50cent.svg",
"license": "CC0",
@ -76,6 +131,17 @@
"https://openclipart.org/detail/311339/worksheet-50-cent-coloured"
]
},
{
"path": "50euro.svg",
"license": "CC0",
"authors": [
"OpenClipart",
"frankes"
],
"sources": [
"https://openclipart.org/detail/311345/worksheet-50-euro-coloured"
]
},
{
"path": "5cent.svg",
"license": "CC0",
@ -87,6 +153,17 @@
"https://openclipart.org/detail/311336/worksheet-5-cent-coloured"
]
},
{
"path": "5euro.svg",
"license": "CC0",
"authors": [
"OpenClipart",
"frankes"
],
"sources": [
"https://openclipart.org/detail/311342/worksheet-5-euro-coloured"
]
},
{
"path": "audio_induction_loop.svg",
"license": "CC-BY 4.0",

View file

@ -1189,6 +1189,105 @@
}
]
},
"denominations-notes": {
"condition": {
"and": [
{
"or": [
"payment:notes=yes",
"payment:cash=yes"
]
},
{
"or": [
"_country=at",
"_country=be",
"_country=cy",
"_country=de",
"_country=ee",
"_country=es",
"_country=fi",
"_country=fr",
"_country=gr",
"_country=hr",
"_country=ie",
"_country=it",
"_country=lt",
"_country=lu",
"_country=lv",
"_country=mt",
"_country=nl",
"_country=pt",
"_country=si",
"_country=sk"
]
}
]
},
"question": {
"en": "what notes can you use to pay here?",
"nl": "Met welke bankbiljetten kan je hier betalen?"
},
"multiAnswer": true,
"mappings": [
{
"if": "payment:notes:denominations=5 EUR",
"icon": "./assets/tagRenderings/5euro.svg",
"then": {
"en": "5 euro notes are accepted",
"nl": "Biljetten van 5 euro worden geaccepteerd"
}
},
{
"if": "payment:notes:denominations=10 EUR",
"icon": "./assets/tagRenderings/10euro.svg",
"then": {
"en": "10 euro notes are accepted",
"nl": "Biljetten van 10 euro worden geaccepteerd"
}
},
{
"if": "payment:notes:denominations=20 EUR",
"icon": "./assets/tagRenderings/20euro.svg",
"then": {
"en": "20 euro notes are accepted",
"nl": "Biljetten van 20 euro worden geaccepteerd"
}
},
{
"if": "payment:notes:denominations=50 EUR",
"icon": "./assets/tagRenderings/50euro.svg",
"then": {
"en": "50 euro notes are accepted",
"nl": "Biljetten van 50 euro worden geaccepteerd"
}
},
{
"if": "payment:notes:denominations=100 EUR",
"icon": "./assets/tagRenderings/100euro.svg",
"then": {
"en": "100 euro notes are accepted",
"nl": "Biljetten van 100 euro worden geaccepteerd"
}
},
{
"if": "payment:notes:denominations=200 EUR",
"icon": "./assets/tagRenderings/200euro.svg",
"then": {
"en": "200 euro notes are accepted",
"nl": "Biljetten van 200 euro worden geaccepteerd"
}
},
{
"if": "payment:notes:denominations=500 EUR",
"icon": "./assets/tagRenderings/500euro.svg",
"then": {
"en": "500 euro notes are accepted",
"nl": "Biljetten van 500 euro worden geaccepteerd"
}
}
]
},
"last_edit": {
"#": "Gives some metainfo about the last edit and who did edit it - rendering only",
"condition": "_last_edit:contributor~*",

View file

@ -49,6 +49,7 @@
"widenFactor": 1.2,
"layers": [
"parking",
"parking_spaces"
"parking_spaces",
"parking_ticket_machine"
]
}