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
^ This being empty when vehicle_type is not defined causes an empty response. If it is included in the sent params it must contain a valid type of 'PRIVATE', 'TAXI', 'MOTORCYCLE', or 'ELECTRIC' (US and Canada region only). source
cbherms@Herms-PC:/mnt/d/Documents/GitHub/WazeRouteCalculator$ python example.py
From: Budapest, Hungary - to: Győr, Hungary
empty response
Admittedly I was unaware private and electric were accepted values, hence setting it to taxi, though i now also realise using taxi instead of private would skew routes as they can use bus lanes in some countries.
Either way, setting it to 'PRIVATE' if it is undefined will fix the above issue, unless you wish to have a check to see if the variable contains anything.
Also, including the full list of options including the note for Electric would be useful to others.
The text was updated successfully, but these errors were encountered:
WazeRouteCalculator/WazeRouteCalculator/WazeRouteCalculator.py
Line 91 in 5319b79
^ This being empty when vehicle_type is not defined causes an empty response. If it is included in the sent params it must contain a valid type of 'PRIVATE', 'TAXI', 'MOTORCYCLE', or 'ELECTRIC' (US and Canada region only).
source
Admittedly I was unaware private and electric were accepted values, hence setting it to taxi, though i now also realise using taxi instead of private would skew routes as they can use bus lanes in some countries.
Either way, setting it to 'PRIVATE' if it is undefined will fix the above issue, unless you wish to have a check to see if the variable contains anything.
Also, including the full list of options including the note for Electric would be useful to others.
The text was updated successfully, but these errors were encountered: