File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def directions(
47
47
continue_straight = None ,
48
48
elevation = None ,
49
49
extra_info = None ,
50
+ maximum_speed = None ,
50
51
suppress_warnings = None ,
51
52
optimized = None ,
52
53
optimize_waypoints = None ,
@@ -166,6 +167,9 @@ def directions(
166
167
Must be a list of strings. Default None.
167
168
:type extra_info: list or tuple of strings
168
169
170
+ :param maximum_speed: The maximum speed to drive (or walk). Default None.
171
+ :type maximum_speed: int
172
+
169
173
:param suppress_warnings: Tells the system to not return any warning messages and corresponding extra_info.
170
174
For false the extra information can still be explicitly requested by adding it with the extra_info parameter.
171
175
:type suppress_warnings: bool
@@ -272,6 +276,9 @@ def directions(
272
276
if extra_info :
273
277
params ["extra_info" ] = extra_info
274
278
279
+ if maximum_speed is not None :
280
+ params ["maximum_speed" ] = maximum_speed
281
+
275
282
if suppress_warnings is not None :
276
283
params ["suppress_warnings" ] = suppress_warnings
277
284
Original file line number Diff line number Diff line change 38
38
"bearings" : PARAM_LIST_TWO ,
39
39
"skip_segments" : [0 , 1 ],
40
40
"elevation" : "true" ,
41
+ "maximum_speed" : 95 ,
41
42
"extra_info" : ["roadaccessrestrictions" ],
42
43
"optimized" : "false" ,
43
44
"continue_straight" : True ,
You can’t perform that action at this time.
0 commit comments