Merge pull request #1150 from pietervdvn/feature/station-map

Station map
This commit is contained in:
Pieter Vander Vennet 2022-12-08 17:44:55 +01:00 committed by GitHub
commit e8ff43312f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 1854 additions and 2 deletions

View file

@ -0,0 +1,86 @@
{
"id": "atm",
"name": {
"en": "ATMs"
},
"description": {
"en": "ATMS to withdraw money"
},
"title": {
"render": {
"en": "ATM"
},
"mappings": [
{
"if": "brand~*",
"then": {
"en": "{brand} ATM"
}
}
]
},
"source": {
"osmTags": "amenity=atm"
},
"minzoom": 13,
"presets": [
{
"tags": [
"amenity=atm"
],
"title": {
"en": "an ATM"
}
}
],
"tagRenderings": [
{
"id": "name",
"render": {
"en": "The name of this ATM is {name}"
}
},
{
"id": "brand",
"question": {
"en": "What brand is this ATM?"
},
"freeform": {
"key": "brand",
"type": "string",
"placeholder": {
"en": "Brand name"
}
},
"render": {
"en": "The brand of this ATM is {brand}"
}
},
{
"id": "operator",
"question": {
"en": "What company operates this ATM?"
},
"freeform": {
"key": "operator",
"type": "string",
"placeholder": {
"en": "Operator"
}
},
"render": {
"en": "The ATM is operated by {operator}"
}
},
"opening_hours"
],
"mapRendering": [
{
"icon": "circle:white;./assets/layers/atm/atm.svg",
"location": [
"point",
"centroid"
]
}
]
}

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="M 0,0 C 0,1 0,2 0,3 H 1 V 1 h 12 v 2 h 1 V 0 C 9.3333333,0 4.6666667,0 0,0 Z m 2,2 c 0,3 0,6 0,9 0,0.599243 0.400757,1 1,1 h 8 c 0.527334,0 1,-0.448696 1,-1 0,-3 0,-6 0,-9 h -1 c 0,2.3333333 0,4.6666667 0,7 -1,0 -2,1 -2,2 H 5 C 5,10 4,9 3,9 3,6.6666667 3,4.3333333 3,2 Z M 7,4 C 5.429204,4 4,4.9528024 4,6 4,7.047198 5.429204,8 7,8 8.570796,8 10,7.047198 10,6 10,4.9528024 8.570796,4 7,4 Z M 2,12.5 C 2,13.554668 2.424727,14 3,14 h 8 c 0.527334,0 1,-0.445332 1,-1.5 -0.305085,0.271186 -0.496636,0.49272 -1,0.46875 l -8,0.0625 C 2.520606,13.00728 2.305085,12.805085 2,12.5 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 678 B

View file

@ -0,0 +1,13 @@
[
{
"path": "atm.svg",
"license": "CC0",
"authors": [
"Michael Glanznig",
"Andy Allan"
],
"sources": [
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/atm.svg"
]
}
]

View file

@ -670,7 +670,7 @@
},
"allowMove": {
"enableRelocation": false,
"enableImproveAccuraccy": true
"enableImproveAccuracy": true
},
"mapRendering": [
{

View file

@ -0,0 +1,97 @@
{
"id": "car_rental",
"name": {
"en": "Car Rental",
"nl": "Autoverhuur"
},
"source": {
"osmTags": "amenity=car_rental"
},
"minzoom": 12,
"title": {
"render": {
"en": "Car Rental",
"nl": "Autoverhuur"
},
"mappings": [
{
"if": "name~*",
"then": "{name}"
}
]
},
"description": {
"en": "Places where you can rent a car",
"nl": "Plaatsen waar je een auto kunt huren"
},
"tagRenderings": [
"images",
{
"id": "name",
"freeform": {
"key": "name",
"type": "string",
"placeholder": {
"en": "Name of the car rental",
"nl": "Naam van de autoverhuur"
}
},
"question": {
"en": "What is the name of this car rental?",
"nl": "Wat is de naam van deze autoverhuur?"
},
"mappings": [
{
"if": "noname=yes",
"then": {
"en": "This car rental has no name",
"nl": "Deze autoverhuur heeft geen naam"
}
}
],
"render": {
"en": "This car rental is called {name}",
"nl": "Deze autoverhuur heet {name}"
}
},
"website",
"email",
"phone",
"opening_hours"
],
"presets": [
{
"tags": [
"amenity=car_rental"
],
"title": {
"en": "a car rental",
"nl": "een autoverhuur"
},
"description": {
"en": "A place where you can rent a car",
"nl": "Een plaats waar je een auto kunt huren"
}
}
],
"mapRendering": [
{
"icon": "circle:white;./assets/layers/car_rental/car_rental.svg",
"location": [
"point",
"centroid"
],
"label": "<div class='bg-white block p-1 rounded'>{name}</div>"
},
{
"color": "darkblue",
"width": 2
}
],
"allowMove": {
"enableImproveAccuracy": true
},
"filter": [
"open_now"
]
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="1200pt" height="1200pt" version="1.1" viewBox="0 0 1200 1200" xmlns="http://www.w3.org/2000/svg">
<g>
<path d="m544.86 93.91h395l63.648 64.223c11.496 11.617 11.219 19.812 0 31.5l-77.555 77.531-45.445-45.434-45.445 45.434-44.832-44.82-43.621 43.633-45.434-45.457-59.387 59.375h-96.926l0.003906-185.98z"/>
<path d="m968.95 704.61-73.922-190.84c-13.801-36.527-44.016-67.609-101.18-67.871h-104.21l-178.12-0.003907h-106.02c-56.891 0.25391-87.098 31.332-101.17 67.871l-73.922 190.84c-29.34 3.7773-81.273 38.266-81.18 103.59v242.96h72.098v77.543c-0.16797 95.629 135.13 94.488 135.1 0v-77.543h486.5v77.543c0.30078 94.488 135.61 95.629 135.7 0v-77.543h72.145v-242.96c-0.24219-65.328-52.227-99.816-81.816-103.59zm-677.95 199.92c-34.559 0.10937-62.555-28.727-62.398-64.188-0.15625-35.699 27.84-64.547 62.398-64.262 34.465-0.27734 62.449 28.57 62.398 64.262 0.0625 35.461-27.934 64.297-62.398 64.188zm308.99-201.73h-292.63l55.738-150.27c6.7188-21.324 17.172-36.59 41.809-36.961h390.17c24.289 0.37109 34.754 15.637 41.785 36.961l55.766 150.27zm308.99 201.73c-34.812 0.10937-62.809-28.727-63.023-64.188 0.21484-35.699 28.211-64.547 63.023-64.262 34.199-0.27734 62.184 28.57 62.387 64.262-0.20312 35.461-28.188 64.297-62.387 64.188z"/>
<path d="m406.71 0c-102.31-0.21484-185.16 83.484-185.39 186.6 0.22656 103.34 83.074 187.04 185.39 187.21 102.1-0.16797 184.95-83.867 184.8-187.21 0.14453-103.12-82.703-186.82-184.8-186.6zm-81.18 235.68c-27.348-0.25391-49.332-22.5-49.078-49.691-0.25391-27.574 21.73-49.812 49.078-49.68 26.891-0.14453 48.875 22.105 49.078 49.68-0.1875 27.191-22.172 49.441-49.078 49.691z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -0,0 +1,12 @@
[
{
"path": "car_rental.svg",
"license": "CC0",
"authors": [
"American Institute of Graphic Arts"
],
"sources": [
"https://thenounproject.com/icon/car-rental-71/"
]
}
]

View file

@ -0,0 +1,69 @@
{
"id": "railway_platforms",
"name": {
"en": "Railway Platforms"
},
"description": {
"en": "Find every platform in the station, and the train routes that use them."
},
"title": {
"render": {
"en": "Platform"
},
"mappings": [
{
"if": "ref~*",
"then": {
"en": "Platform {ref}"
}
}
]
},
"source": {
"osmTags": {
"or": [
"railway=platform"
]
}
},
"minzoom": 18,
"tagRenderings": [
{
"id": "ref",
"question": {
"en": "What is the number for this platform?"
},
"freeform": {
"key": "ref",
"type": "string",
"placeholder": {
"en": "Platform number"
}
},
"render": {
"en": "Platform {ref}"
}
},
"level"
],
"mapRendering": [
{
"color": "gray"
},
{
"icon": "./assets/themes/stations/rail-light.svg",
"location": [
"point",
"centroid"
],
"label": {
"mappings": [
{
"if": "ref~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{ref}</div>"
}
]
}
}
]
}

View file

@ -32,6 +32,19 @@
},
"tagRenderings": [
"images",
{
"builtin": "multilevels",
"override": {
"question": {
"en": "Between which levels are these stairs?",
"nl": "Tussen welke verdiepingen loopt deze trap?"
},
"render": {
"en": "These stairs are between the levels {level}",
"nl": "Deze trap loopt tussen de verdiepingen {level}"
}
}
},
{
"id": "handrail",
"question": {
@ -195,7 +208,7 @@
{
"color": "gray",
"width": 10,
"dashArray": "2 2"
"dashArray": "6 12"
}
]
}

View file

@ -0,0 +1,79 @@
{
"id": "ticket_machine",
"name": {
"en": "Ticket Machines"
},
"description": {
"en": "Find ticket machines for public transport tickets"
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending=public_transport_tickets"
]
}
},
"minzoom": 19,
"title": {
"render": {
"en": "Ticket Machine"
}
},
"tagRenderings": [
"images",
"level",
{
"id": "operator",
"question": {
"en": "Who is the operator of this ticket machine?"
},
"render": {
"en": "This ticket machine is operated by {operator}"
},
"freeform": {
"key": "operator",
"type": "string",
"placeholder": {
"en": "Name of the operator"
}
},
"mappings": [
{
"if": "operator=Nederlandse Spoorwegen",
"then": {
"en": "Dutch Railways (NS)",
"nl": "Nederlandse Spoorwegen (NS)"
},
"addExtraTags": [
"operator:wikidata=Q23076"
],
"hideInAnswer": "_country!=nl"
}
]
},
"payment-options-split",
"denominations-coins"
],
"presets": [
{
"tags": [
"amenity=vending_machine",
"vending=public_transport_tickets"
],
"title": {
"en": "a ticket machine"
}
}
],
"mapRendering": [
{
"icon": "square:lightblue;./assets/themes/stations/public_transport_tickets.svg",
"iconSize": "20,20,center",
"location": [
"point",
"centroid"
]
}
]
}

View file

@ -0,0 +1,96 @@
{
"id": "ticket_validator",
"name": {
"en": "Ticket Validators"
},
"description": {
"en": "Find ticket validators to validate public transport tickets"
},
"source": {
"osmTags": "amenity=ticket_validator"
},
"minzoom": 19,
"title": {
"render": {
"en": "Ticket Validator"
}
},
"tagRenderings": [
"images",
"level",
{
"id": "barrier",
"condition": "barrier~*",
"render": {
"en": "This ticket validator is part of a barrier of type {barrier}"
},
"mappings": [
{
"if": "barrier=gate",
"then": {
"en": "This ticket validator is part of a gate"
}
}
]
},
{
"id": "validator-operator",
"question": {
"en": "Who is the operator of this ticket validator?"
},
"render": {
"en": "This ticket validator is operated by {operator}"
},
"freeform": {
"key": "operator",
"type": "string",
"placeholder": {
"en": "Name of the operator"
}
}
},
{
"builtin": "payment-options",
"override": {
"mappings+": [
{
"if": "payment:OV-Chipkaart=yes",
"ifnot": "payment:OV-Chipkaart=no",
"then": {
"en": "This ticket validator accepts OV-Chipkaart"
},
"hideInAnswer": "_country!=nl"
},
{
"if": "payment:ov-chipkaart=yes",
"ifnot": "payment:ov-chipkaart=no",
"then": {
"en": "This ticket validator accepts OV-Chipkaart"
},
"hideInAnswer": true
}
]
}
}
],
"presets": [
{
"tags": [
"amenity=ticket_validator"
],
"title": {
"en": "a ticket validator"
}
}
],
"mapRendering": [
{
"icon": "square:green;./assets/themes/stations/public_transport_tickets.svg",
"iconSize": "20,20,center",
"location": [
"point",
"centroid"
]
}
]
}