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
path.direction = andyamo_instruction.get("type", 0)
# Check if path.direction is an int or can be cast to an int
try:
# Attempt to cast to an int
path.direction = int(path.direction)
except (ValueError, TypeError):
# If casting fails, default to 0
path.direction = 0
# Valhalla format: https://valhalla.github.io/valhalla/api/turn-by-turn/api-reference/#trip-legs-and-maneuvers
if path.direction == 10: ## means right turn as defined in Valhalla (See link above)
path.direction = 90
elif path.direction == 15: ## means left turn as defined in Valhalla (See link above)
path.direction = -90
The text was updated successfully, but these errors were encountered:
navitia/source/jormungandr/jormungandr/street_network/andyamo.py
Line 363 in 3aa669c
The text was updated successfully, but these errors were encountered: