Fix parameter for new HERE Isolines API
This commit is contained in:
parent
d0f28cc002
commit
c7ed86072b
@ -345,6 +345,9 @@ class HereMapsRoutingIsolineV8(Traceable):
|
|||||||
mode_params.update({'routingmode': mode_type})
|
mode_params.update({'routingmode': mode_type})
|
||||||
|
|
||||||
if not ('mode_traffic' in options and options['mode_traffic'] == 'enabled'):
|
if not ('mode_traffic' in options and options['mode_traffic'] == 'enabled'):
|
||||||
mode_params.update({'departuretime': 'any'})
|
if 'is_destination' in options and options['is_destination'].lower() == 'true':
|
||||||
|
mode_params.update({'arrivaltime': 'any'})
|
||||||
|
else:
|
||||||
|
mode_params.update({'departuretime': 'any'})
|
||||||
|
|
||||||
return mode_params
|
return mode_params
|
||||||
|
Loading…
Reference in New Issue
Block a user