You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letquest=LongFormElement(elementType:"Sidewalks", questQuery:"ways with (highway=footway and footway=sidewalk)", elementTypeIcon:"icon", quests:[LongQuest(questID:14,
343
-
questTitle:"Does the length of this crossing allow for safe navigation?",
344
-
questDescription:"Determine whether this crossing is short enough to cross safely.",
345
-
questType:.exclusiveChoice,
346
-
questTag:"ext:crossing_adequate_length",
347
-
questAnswerChoices:[QuestAnswerChoice(value:"yes", choiceText:"Yes, this roadway can be crossed safely. this is to test the line limit functionlity. want to see the max capability of this feature. the max lines should be 10. this is for our obervations only. till now it is able to render 10 lines with out any issue.", imageURL:nil, choiceFollowUp:nil),
348
-
QuestAnswerChoice(value:"no", choiceText:"No, this roadway is too wide to cross safely.", imageURL:nil, choiceFollowUp:nil)], questImageURL:nil, questAnswerValidation:nil, questAnswerDependency:nil, questUserAnswer:nil)])
344
+
letjsonString="""
345
+
{
346
+
"element_type": "Crossings",
347
+
"element_type_icon": "pedestrian_crossing",
348
+
"quest_query": "ways with (highway=footway and footway=crossing)",
349
+
"quests": [
350
+
{
351
+
"quest_id": 201,
352
+
"quest_title": "Does this crossing have markings on the roadway?",
353
+
"quest_description": "Check if there are roadway markings present at this crossing.",
Copy file name to clipboardExpand all lines: GoInfoGame/GoInfoGame/quests/LongQuests/View/LongQuestView.swift
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -54,16 +54,19 @@ struct LongQuestView: View {
54
54
}
55
55
56
56
#Preview {
57
-
letlongQeust=LongQuest(questID:14,
58
-
questTitle:"Does the length of this crossing allow for safe navigation?",
59
-
questDescription:"Determine whether this crossing is short enough to cross safely.",
60
-
questType:.exclusiveChoice,
61
-
questTag:"ext:crossing_adequate_length",
62
-
questAnswerChoices:[QuestAnswerChoice(value:"yes", choiceText:"Yes, this roadway can be crossed safely.", imageURL:nil, choiceFollowUp:nil),
63
-
QuestAnswerChoice(value:"no", choiceText:"No, this roadway is too wide to cross safely.", imageURL:nil, choiceFollowUp:nil)], questImageURL:nil, questAnswerValidation:nil, questAnswerDependency:nil, questUserAnswer:nil)
64
-
65
-
66
-
LongQuestView(quest: longQeust, selectedChoice:.constant(nil), uploadPhoto:{ s in
57
+
letjsonString="""
58
+
{
59
+
"quest_id": 205,
60
+
"quest_title": "Additional crossing notes...",
61
+
"quest_description": "Add any additional observations you'd like to record about this crossing",
0 commit comments