Skip to content

Commit

Permalink
Add elevator questions (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
wielandb authored Jul 22, 2024
1 parent 8f7fdc2 commit 5e3b3b1
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 5 deletions.
190 changes: 190 additions & 0 deletions assets/question_catalog/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -2431,6 +2431,9 @@
"highway": "elevator",
"length": false
},
"!osm_tags": {
"shape": "circular"
},
"osm_element": "Node"
}
]
Expand Down Expand Up @@ -2508,10 +2511,197 @@
"highway": "elevator",
"width": false
},
"!osm_tags": {
"shape": "circular"
},
"osm_element": "Node"
}
]
},
{
"question": {
"name": "@elevatorHeightName",
"text": "@elevatorHeightText"
},
"answer": {
"type": "Number",
"input": {
"placeholder": "@elevatorHeightPlaceholder",
"decimals": 0,
"min": 150,
"max": 400,
"unit": "@unitCentimeter"
},
"constructor": {
"width": [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
]
}
},
"conditions": [
{
"osm_tags": {
"highway": "elevator",
"height": false
}
}
]
},
{
"question": {
"name": "@elevatorDiameterName",
"text": "@elevatorDiameterText"
},
"answer": {
"type": "Number",
"input": {
"placeholder": "@elevatorDiameterPlaceholder",
"decimals": 0,
"min": 150,
"max": 1000,
"unit": "@unitCentimeter"
},
"constructor": {
"diameter": [
"CONCAT", [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
], " m"
]
}
},
"conditions": [
{
"osm_tags": {
"highway": "elevator",
"shape": "circular",
"diameter": false
},
"osm_element": "Node"
}
]
},
{
"question": {
"name": "@elevatorDoorWidthName",
"text": "@elevatorDoorWidthText",
"description": "@elevatorDoorWidthDescription"
},
"answer": {
"type": "Number",
"input": {
"placeholder": "@elevatorDoorWidthPlaceholder",
"decimals": 0,
"min": 80,
"max": 300,
"unit": "@unitCentimeter"
},
"constructor": {
"door:width": [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
]
}
},
"conditions": [
{
"osm_tags": {
"highway": "elevator",
"door:width": false
},
"osm_element": ["Node", "ClosedWay"],
"!parent": [
{
"osm_element": "OpenWay",
"child": [
{
"osm_tags": {
"indoor": "door",
"door":"sliding",
"automatic_door": ["yes", "button"]
}
}
]
}
],
"!child": [
{
"osm_tags": {
"door": ["yes", "sliding"]
}
}
]
}
],
"$comment": "The condition is trying to make sure that there is no separately mapped elevator door by excluding the question if another door with elevator-door-like properties is on the same footway as the elevator. It also excludes children of the elevator object in case the door is mapped as a node on the elevator way."
},
{
"question":{
"name": "@elevatorDoorHeightName",
"text": "@elevatorDoorHeightText",
"description": "@elevatorDoorHeightDescription"
},
"answer": {
"type": "Number",
"input": {
"placeholder": "@elevatorDoorHeightPlaceholder",
"decimals": 0,
"min": 150,
"max": 400,
"unit": "@unitCentimeter"
},
"constructor": {
"width": [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
]
}
},
"conditions": [
{
"osm_tags": {
"highway": "elevator",
"door:height": false
},
"osm_element": ["Node", "ClosedWay"],
"!parent": [
{
"osm_element": "OpenWay",
"child": [
{
"osm_tags": {
"indoor": "door",
"door":"sliding",
"automatic_door": ["yes", "button"]
}
}
]
}
],
"!child": [
{
"osm_tags": {
"door": ["yes", "sliding"]
}
}
]
}
],
"$comment": "The condition is trying to make sure that there is no separately mapped elevator door by excluding the question if another door with elevator-door-like properties is on the same footway as the elevator. It also excludes children of the elevator object in case the door is mapped as a node on the elevator way."
},
{
"question": {
"name": "@elevatorTactileWritingName",
Expand Down
36 changes: 32 additions & 4 deletions assets/question_catalog/locales/de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"cycleBarrierWidthDescription": "Die Durchgangsbreite, auch lichte Breite genannt, beschreibt die maximal zulässige Breite, um eine Sperre passieren zu können.",
"@cycleBarrierWidthDescription": {},
"cycleBarrierWidthPlaceholder": "Breite",
"@cycleBarrierWidthPlaceholder": {},
"@cycleBarrierWidthPlaceho}lder": {},
"cycleBarrierOpeningName": "Umlaufsperren-Zugangsbreite",
"@cycleBarrierOpeningName": {},
"cycleBarrierOpeningText": "Wie breit ist der (schmalste) Zugang der Umlaufsperre?",
Expand Down Expand Up @@ -388,13 +388,13 @@
"@elevatorWidthDescription": {},
"elevatorWidthPlaceholder": "Breite",
"@elevatorWidthPlaceholder": {},
"elevatorTactileWritingName": "Fahrstuhl-Blindenschrift",
"elevatorTactileWritingName": "Blindenschrift im Fahrstuhl",
"@elevatorTactileWritingName": {},
"elevatorTactileWritingText": "Ist auf den Bedienelementen des Fahrstuhls Blindenschrift vorhanden?",
"@elevatorTactileWritingText": {},
"elevatorTactileWritingDescription": "Blindenschrift sind Zeichen, die mit den Fingern gelesen werden können. Diese können u.a. geprägte gewöhnliche Buchstaben oder besondere Symbole sein, wie z.B. bei der Brailleschrift.",
"@elevatorTactileWritingDescription": {},
"elevatorAnnouncementsName": "Fahrstuhl-Ansagen",
"elevatorAnnouncementsName": "Ansagen im Fahrstuhl",
"@elevatorAnnouncementsName": {},
"elevatorAnnouncementsText": "Wird die aktuelle Etage im Aufzug angesagt?",
"@elevatorAnnouncementsText": {},
Expand Down Expand Up @@ -637,5 +637,33 @@
"crossingAcousticWarningSignalText": "Gibt es ein akustisches Signal, das vor der Durchfahrt einer Bahn warnt?",
"@crossingAcousticWarningSignalText": {},
"crossingAcousticWarningSignalDescription": "Das Warnsignal ertönt durch ein stationären Signalgeber und nicht durch das Triebfahrzeug.",
"@crossingAcousticWarningSignalDescription": {}
"@crossingAcousticWarningSignalDescription": {},
"elevatorHeightName": "Höhe des Fahrstuhls",
"@elevatorHeightName": {},
"elevatorHeightText": "Wie hoch ist die Kabine des Fahrstuhls?",
"@elevatorHeightText": {},
"elevatorHeightPlaceholder": "Höhe der Kabine",
"@elevatorHeightPlaceholder": {},
"elevatorDiameterName": "Durchmesser des Fahrstuhls",
"@elevatorDiameterName": {},
"elevatorDiameterText": "Welchen Durchmesser hat die Kabine des Fahrstuhls?",
"@elevatorDiameterText": {},
"elevatorDiameterPlaceholder": "Durchmesser der Kabine",
"@elevatorDiameterPlaceholder": {},
"elevatorDoorWidthName": "Breite der Fahrstuhltür",
"@elevatorDoorWidthName": {},
"elevatorDoorWidthText": "Wie breit ist die Tür dieses Fahrstuhls?",
"@elevatorDoorWidthText": {},
"elevatorDoorWidthDescription": "Die lichte Breite ist das Innenmaß von einer Seite der Tür zur anderen, nicht die Außenbreite des Türrahmens.",
"@elevatorDoorWidthDescription": {},
"elevatorDoorWidthPlaceholder": "Breite",
"@elevatorDoorWidthPlaceholder": {},
"elevatorDoorHeightName": "Höhe der Fahrstuhltür",
"@elevatorDoorHeightName": {},
"elevatorDoorHeightText": "Wie hoch ist die Tür dieses Fahrstuhls?",
"@elevatorDoorHeightText": {},
"elevatorDoorHeightDescription": "Die lichte Höhe ist das Innenmaß von der Unterseite der Tür bis zur Oberseite, nicht die Außenhöhe des Türrahmens.",
"@elevatorDoorHeightDescription": {},
"elevatorDoorHeightPlaceholder": "Höhe",
"@elevatorDoorHeightPlaceholder": {}
}
30 changes: 29 additions & 1 deletion assets/question_catalog/locales/en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -637,5 +637,33 @@
"unitMeter": "meter",
"@unitMeter": {},
"unitKilogram": "kilogram",
"@unitKilogram": {}
"@unitKilogram": {},
"elevatorHeightName": "Elevator height",
"@elevatorHeightName": {},
"elevatorHeightText": "What is the height of the elevator cabin?",
"@elevatorHeightText": {},
"elevatorHeightPlaceholder": "Cabin height",
"@elevatorHeightPlaceholder": {},
"elevatorDiameterName": "Elevator diameter",
"@elevatorDiameterName": {},
"elevatorDiameterText": "What is the diameter of this elevator?",
"@elevatorDiameterText": {},
"elevatorDiameterPlaceholder": "Diameter of the cabin",
"@elevatorDiameterPlaceholder": {},
"elevatorDoorWidthName": "Elevator door width",
"@elevatorDoorWidthName": {},
"elevatorDoorWidthText": "What is the width of the elevator door?",
"@elevatorDoorWidthText": {},
"elevatorDoorWidthDescription": "The clearance width is the inner measurement from one side of the door to the other, not the outer width of the door frame.",
"@elevatorDoorWidthDescription": {},
"elevatorDoorWidthPlaceholder": "Clearance width",
"@elevatorDoorWidthPlaceholder": {},
"elevatorDoorHeightName": "Elevator door height",
"@elevatorDoorHeightName": {},
"elevatorDoorHeightText": "What is the height of the elevator door?",
"@elevatorDoorHeightText": {},
"elevatorDoorHeightDescription": "The clearance height is the inner measurement from the bottom of the door to the top, not the outer height of the door frame.",
"@elevatorDoorHeightDescription": {},
"elevatorDoorHeightPlaceholder": "Clearance height",
"@elevatorDoorHeightPlaceholder": {}
}

0 comments on commit 5e3b3b1

Please sign in to comment.