File tree 2 files changed +30
-1
lines changed
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,33 @@ const queryParams = [
163
163
default : true
164
164
} ,
165
165
166
+ {
167
+ /* walkSpeed -- the user's walking speed in m/s */
168
+ name : "walkSpeed" ,
169
+ routingTypes : [ "ITINERARY" , "PROFILE" ] ,
170
+ default : 1.34 ,
171
+ selector : "DROPDOWN" ,
172
+ label : "Walk Speed" ,
173
+ applicable : query =>
174
+ query . mode &&
175
+ ! hasTransit ( query . mode ) && // Only applicable for walk-only trips (see walkTolerance for transit+walk)
176
+ query . mode . indexOf ( "WALK" ) !== - 1 ,
177
+ options : [
178
+ {
179
+ text : "2 MPH" ,
180
+ value : 0.89
181
+ } ,
182
+ {
183
+ text : "3 MPH" ,
184
+ value : 1.34
185
+ } ,
186
+ {
187
+ text : "4 MPH" ,
188
+ value : 1.79
189
+ }
190
+ ]
191
+ } ,
192
+
166
193
{
167
194
/* maxWalkDistance - the maximum distance in meters the user will walk to transit. */
168
195
name : "maxWalkDistance" ,
@@ -365,6 +392,7 @@ const queryParams = [
365
392
}
366
393
]
367
394
} ,
395
+
368
396
{
369
397
name : "walkReluctance" ,
370
398
routingTypes : [ "ITINERARY" , "PROFILE" ] ,
@@ -382,6 +410,7 @@ const queryParams = [
382
410
*/
383
411
! ! query . otp2 && query . mode && query . mode . indexOf ( "WALK" ) !== - 1
384
412
} ,
413
+
385
414
{
386
415
/* maxBikeTime -- the maximum time the user will spend biking in minutes */
387
416
name : "maxBikeTime" ,
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import {
16
16
17
17
export const defaultParams = [
18
18
"wheelchair" ,
19
- "maxWalkDistance" ,
20
19
"walkReluctance" ,
20
+ "walkSpeed" ,
21
21
"maxWalkTime" ,
22
22
"maxBikeDistance" ,
23
23
"maxBikeTime" ,
You can’t perform that action at this time.
0 commit comments