diff --git a/assets/question_catalog/definition.json b/assets/question_catalog/definition.json index 4edf3c2a..5d63337e 100644 --- a/assets/question_catalog/definition.json +++ b/assets/question_catalog/definition.json @@ -1701,6 +1701,137 @@ } ] }, + { + "question":{ + "name": "@doorOpenName", + "text": "@doorOpenText", + "description": "@doorOpenDescription" + }, + "answer": { + "type": "List", + "input": [ + { + "name": "@doorOpenNoOption", + "osm_tags": { + "open": "no" + } + }, + { + "name": "@doorOpenPartialOption", + "osm_tags": { + "open": "partial" + } + }, + { + "name": "@doorOpenFullOption", + "osm_tags": { + "open": "full" + } + } + ] + }, + "conditions": [ + { + "osm_tags": { + "railway": ["subway_entrance", "train_station_entrance"], + "door": true, + "open": false + }, + "!osm_tags": { + "door": ["no", "revolving"] + }, + "osm_element": "Node" + }, + { + "osm_tags": { + "access": ["yes", "customers", false], + "level": true, + "door": true, + "open": false + }, + "!osm_tags": { + "door": ["no", "revolving"] + }, + "osm_element": "Node" + }, + { + "osm_tags": { + "indoor": "door", + "access": ["yes", "customers", false], + "door": true, + "open": false + }, + "!osm_tags": { + "door": ["no", "revolving"] + }, + "osm_element": "Node" + }, + { + "osm_tags": { + "access": ["yes", "customers", false], + "door": true, + "open": false + }, + "!osm_tags": { + "door": ["no", "revolving"] + }, + "osm_element": "Node", + "parent": [ + { + "osm_tags": { + "building": ["train_station", "transportation", "toilets", "parking"] + } + }, + { + "osm_tags": { + "public_transport": "station" + } + }, + { + "osm_tags": { + "level": true + } + } + ] + } + ] + }, + { + "question": { + "name": "@doorOpeningName", + "text": "@doorOpeningText", + "description": "@doorOpeningDescription" + }, + "answer": { + "type": "Number", + "input": { + "placeholder": "@doorOpeningPlaceholder", + "decimals": 0, + "min": 50, + "max": 400, + "unit": "@unitCentimeter" + }, + "constructor": { + "width": [ + "REPLACE", "/\\.?0{1,2}$/", "", [ + "INSERT", ".", "-2", [ + "PAD", "0", "3", "$input" + ] + ] + ] + } + }, + "conditions": [ + { + "osm_tags": { + "door": true, + "open": "partial", + "opening": false + }, + "osm_element": "Node" + } + ] + }, { "question": { "name": "@waySegregatedName", diff --git a/assets/question_catalog/locales/de.arb b/assets/question_catalog/locales/de.arb index ecbb6383..3f8cbd62 100644 --- a/assets/question_catalog/locales/de.arb +++ b/assets/question_catalog/locales/de.arb @@ -252,6 +252,26 @@ "@doorWidthDescription": {}, "doorWidthPlaceholder": "Breite", "@doorWidthPlaceholder": {}, + "doorOpenName": "Offene Tür", + "@doorOpenName": {}, + "doorOpenText": "Steht diese Tür normalerweise offen?", + "@doorOpenText": {}, + "doorOpenDescription": "Das ist wichtig damit Rollstuhlfahrende wissen, ob sie die Tür selbst öffnen müssen oder ob einfach hindurch können. Wenn es nicht einschätzbar ist, sollte die Frage übersprungen werden.", + "@doorOpenDescription": {}, + "doorOpenNoOption": "Nein", + "@doorOpenNoOption": {}, + "doorOpenFullOption": "Vollständig offen", + "@doorOpenFullOption": {}, + "doorOpenPartialOption": "Teilweise offen", + "@doorOpenPartialOption": {}, + "doorOpeningName": "Durchgangsbreite der Türöffnung", + "@doorOpeningName": {}, + "doorOpeningText": "Was ist die Durchgangsbreite der teilweise geöffneten Tür?", + "@doorOpeningText": {}, + "doorOpeningDescription": "Das Ausmaß (lichte Breite) um welches die Tür derzeit geöffnet ist.", + "@doorOpeningDescription": {}, + "doorOpeningPlaceholder": "Durchgangsbreite", + "@doorOpeningPlaceholder": {}, "waySegregatedName": "Fuß-/Radweg-Verlauf", "@waySegregatedName": {}, "waySegregatedText": "Wie verlaufen der Fuß- und Radweg zueinander?", diff --git a/assets/question_catalog/locales/en.arb b/assets/question_catalog/locales/en.arb index f0f64f9d..eaeb19e7 100644 --- a/assets/question_catalog/locales/en.arb +++ b/assets/question_catalog/locales/en.arb @@ -252,6 +252,26 @@ "@doorWidthDescription": {}, "doorWidthPlaceholder": "Width", "@doorWidthPlaceholder": {}, + "doorOpenName": "Open door", + "@doorOpenName": {}, + "doorOpenText": "Is the door usually open?", + "@doorOpenText": {}, + "doorOpenDescription": "This is important so that wheelchair users know if they need to open the door or if they can just pass through. The question should be skipped if it is hard to assess.", + "@doorOpenDescription": {}, + "doorOpenNoOption": "No", + "@doorOpenNoOption": {}, + "doorOpenFullOption": "Completely open", + "@doorOpenFullOption": {}, + "doorOpenPartialOption": "Partially open", + "@doorOpenPartialOption": {}, + "doorOpeningName": "Door opening width", + "@doorOpeningName": {}, + "doorOpeningText": "How wide is the opening of the partially open door?", + "@doorOpeningText": {}, + "doorOpeningDescription": "The extent (clearance width) to which the door is currently open.", + "@doorOpeningDescription": {}, + "doorOpeningPlaceholder": "Clearance width", + "@doorOpeningPlaceholder": {}, "waySegregatedName": "Pedestrian/bicycle relation", "@waySegregatedName": {}, "waySegregatedText": "How do the footpath and cycleway relate to each other?",