diff --git a/assets/question_catalog/definition.json b/assets/question_catalog/definition.json index 4edf3c2a..1b9921c5 100644 --- a/assets/question_catalog/definition.json +++ b/assets/question_catalog/definition.json @@ -975,7 +975,7 @@ "text": "@portableRampLengthText", "description": "@portableRampLengthDescription", "image": [ - "assets/question_catalog/images/wheelchair_ramp_1.jpg" + "assets/question_catalog/images/wheelchair_ramp_length.png" ] }, "answer": { @@ -1006,6 +1006,43 @@ } ] }, + { + "question": { + "name": "@portableRampWidthName", + "text": "@portableRampWidthText", + "description": "@portableRampWidthDescription", + "image": [ + "assets/question_catalog/images/wheelchair_ramp_width.png" + ] + }, + "answer": { + "type": "Number", + "input": { + "placeholder": "@portableRampWidthPlaceholder", + "decimals": 0, + "min": 20, + "max": 200, + "unit": "@unitCentimeter" + }, + "constructor": { + "ramp:portable:maxwidth:physical": [ + "REPLACE", "/\\.?0{1,2}$/", "", [ + "INSERT", ".", "-2", [ + "PAD", "0", "3", "$input" + ] + ] + ] + } + }, + "conditions": [ + { + "osm_tags": { + "ramp:portable": "yes", + "ramp:portable:maxwidth:physical": false + } + } + ] + }, { "question": { "name": "@portableRampLoadCapacityName", diff --git a/assets/question_catalog/locales/en.arb b/assets/question_catalog/locales/en.arb index f0f64f9d..4004f3b3 100644 --- a/assets/question_catalog/locales/en.arb +++ b/assets/question_catalog/locales/en.arb @@ -162,6 +162,14 @@ "@portableRampLengthDescription": {}, "portableRampLengthPlaceholder": "Ramp length", "@portableRampLengthPlaceholder": {}, + "portableRampWidthName": "Ramp width", + "@portableRampWidthhName": {}, + "portableRampWidthText": "How wide is the portable wheelchair ramp?", + "@portableRampWidthText": {}, + "portableRampWidthDescription": "Portable ramps help wheelchair users to overcome gaps or steps (when getting on or off a vehicle).", + "@portableRampWidthDescription": {}, + "portableRampWidthPlaceholder": "Ramp width", + "@portableRampWidthPlaceholder": {}, "portableRampLoadCapacityName": "Ramp load capacity", "@portableRampLoadCapacityName": {}, "portableRampLoadCapacityText": "What is the maximum load capacity of the portable ramp?",