forked from MapComplete/MapComplete
Velopark: add first sync tool
This commit is contained in:
parent
300df3fb41
commit
250eede658
8 changed files with 500 additions and 4 deletions
|
@ -668,6 +668,45 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "operator_phone",
|
||||
"question": {
|
||||
"en": "What is the phone number of the operator of this bicycle parking?",
|
||||
"nl": "Wat is het telefoonnummer van de operator van deze fietsenstalling?"
|
||||
},
|
||||
"questionHint": {
|
||||
"en": "One might be able to call this number in case of problems, e.g. to remove unmaintained bicycles",
|
||||
"nl": "Men kan dit nummer bellen om bv. fietswrakken of defecten te melden"
|
||||
},
|
||||
"icon": "./assets/layers/questions/phone.svg",
|
||||
"freeform": {
|
||||
"key": "operator:phone",
|
||||
"type": "phone",
|
||||
"addExtraTags": [
|
||||
"phone=",
|
||||
"contact:phone="
|
||||
]
|
||||
},
|
||||
"render": "<a href='tel:{operator:phone}'>{operator:phone}</a>",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "phone~*",
|
||||
"hideInAnswer": true,
|
||||
"then": {
|
||||
"*": "<a href='tel:{phone}'>{phone}</a>"
|
||||
},
|
||||
"icon": "./assets/layers/questions/phone.svg"
|
||||
},
|
||||
{
|
||||
"if": "contact:phone~*",
|
||||
"hideInAnswer": true,
|
||||
"then": {
|
||||
"*": "<a href='tel:{contact:phone}'>{contact:phone}</a>"
|
||||
},
|
||||
"icon": "./assets/layers/questions/phone.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
"en": "Does this bicycle parking have spots for cargo bikes?",
|
||||
|
|
|
@ -63,7 +63,12 @@
|
|||
"minzoom": 8
|
||||
}
|
||||
},
|
||||
"bike_parking",
|
||||
{
|
||||
"builtin": ["bike_parking"],
|
||||
"override": {
|
||||
"minzoom": 14
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": ["toilet","bike_repair_station","bicycle_rental"],
|
||||
"override": {
|
||||
|
@ -96,6 +101,17 @@
|
|||
"text": "{ref:velopark}"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "comparison_tool",
|
||||
"condition": "ref:velopark~https://data.velopark.be/data/.*" ,
|
||||
"render": {
|
||||
"special": {
|
||||
"type": "compare_data",
|
||||
"url": "ref:velopark",
|
||||
"postprocessing": "velopark"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue