Skip to content

Commit

Permalink
Add images and question for portable ramp (#266)
Browse files Browse the repository at this point in the history
* Add images for question about wheelchair ramp length and width
* Add question for portable ramp width
  • Loading branch information
7h30n3 committed Aug 2, 2024
1 parent a026085 commit 623c4ee
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
39 changes: 38 additions & 1 deletion assets/question_catalog/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion assets/question_catalog/locales/en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,18 @@
"@portableRampLengthName": {},
"portableRampLengthText": "How long is the portable wheelchair ramp?",
"@portableRampLengthText": {},
"portableRampLengthDescription": "Portable ramps help wheelchair users to overcome gaps or steps (when getting on or off a vehicle).",
"portableRampLengthDescription": "The length of an (unfolded or maximum extended) portable ramp is important for wheelchair users, because in combination with other factors one can determine the possible inclination of the ramp while in use.",
"@portableRampLengthDescription": {},
"portableRampLengthPlaceholder": "Ramp length",
"@portableRampLengthPlaceholder": {},
"portableRampWidthName": "Ramp width",
"@portableRampWidthhName": {},
"portableRampWidthText": "How wide is the portable wheelchair ramp?",
"@portableRampWidthText": {},
"portableRampWidthDescription": "The maximum usable width of an (unfolded) portable ramp is important to know for wheelchair users as it is one of the defining factors whether they can use the ramp.",
"@portableRampWidthDescription": {},
"portableRampWidthPlaceholder": "Ramp width",
"@portableRampWidthPlaceholder": {},
"portableRampLoadCapacityName": "Ramp load capacity",
"@portableRampLoadCapacityName": {},
"portableRampLoadCapacityText": "What is the maximum load capacity of the portable ramp?",
Expand Down

0 comments on commit 623c4ee

Please sign in to comment.