Time-Aware Routing
- the direction of travel restrictions, including reversible roads
- high-occupancy vehicle (HOV) lanes
- time-restricted maneuvers
- seasonal closures
The Routing API v7 calculates the route in a way that respects time zones, including daylight saving time, and time-related events such as traffic, along the whole route.
- When a user specifies a departure time in the request, the API takes time-aware restrictions into consideration.
- When the user is in trip planning mode (departure time is not specified), the API does not take time-aware restrictions into consideration.
- a restriction – in case it is possible to avoid the maneuver
- a violation – in case it is not possible to avoid the maneuver
The type of note depends on the type of restriction and on whether the request uses time-aware or trip planning mode. The following table lists the available note types.
Type of Restriction | Time-Aware Mode | Planning Mode | |
---|---|---|---|
Restriction violated | Restriction present | ||
Reversible Express Lanes | violation | restriction | restriction |
Carpool HOV Lanes | violation | restriction | restriction |
Seasonal Closures | restriction | restriction | restriction |
note : [ <1 elem>
0 : {
type: restriction|violation
code: timeDependentRestriction
type: "..."
}
]