Traffic Modes

Depending on the use case and when to travel the route calculation will take different data into account. This is selected by the options[trafficMode] and the date and time. By default, when none of these parameters are specified, the Routing API will automatically calculate the most realistic route and travel time for the route starting now.

REALISTIC

Return the most realistic route and travel time for the given exact time (or now if not specified) and the selected vehicle. The typical and the live traffic situation are taken into account. Toll will be calculated according to the prices valid exactly when passing the toll roads.

Use this traffic mode

  • when starting now or within the next minutes or at most very few hours in order to get the best route and travel time for that,
  • when planning to travel in the near future knowing exactly when to start in order to find the best route including deviations due to road works.

As live traffic data changes frequently, the route calculation result may change when executing the same request at a different point in time.

Traffic Delay

The response parameter trafficDelay contains the total delay due to live traffic for the complete route, leg or alternative route which may be 0 when the route is not affected by live traffic, at all.

For each section of the route where live traffic data applies, the delay is calculated comparing the travel time for that section with and without live traffic. That means the delay contains the time that it takes longer to pass the traffic jam than usually at the same time and the same day of week. As an example, driving a section on a highway between two exits usually takes 15 minutes on an average Friday afternoon at 4 pm, but due to a road works there is a traffic jam on this specific Friday afternoon at 4 pm, and driving this section takes 30 minutes. The delay will be 15 minutes.

Consequently, the delay of a traffic jam during the rush hour may be smaller compared to a similar traffic jam outside the rush hour. This is due to the fact that longer travel times during the rush hours in the mornings and evenings are considered as typical traffic. When driving the section above on a Sunday at 10 am usually takes only 10 minutes, but on this specific Sunday at 10 am it takes 30 minutes due to the traffic jam, the delay will be 20 minutes.

AVERAGE

Return the average route and travel time for the selected vehicle. Neither start nor arrival time are necessary, but when specified, the average traffic situation is taken into account resulting in a route typical for that day of week and time of day. Toll will be calculated according to the prices valid exactly when passing the toll roads according to the time specified, otherwise on an average Monday at noon.

Use this traffic mode with start or arrival time

  • when planning to travel in the future knowing exactly when to start in order to find the probably best route and how long it will take,
  • in order to find out the best route and travel time on some specific day of week and time of day, e.g. when traveling the route regularly at a different time of day, or as a commuter,
  • in order to calculate or verify toll for a route recently driven.

Use this traffic mode without start or arrival time

  • when planning to travel in the future not knowing when to start but to get an idea of how long the route and the travel time are,
  • in order to calculate the average distance and travel time between two cities.

The route calculation result will be the same when executing the same request at a different point in time, but it may change after updating data.

Traffic Delay

The response parameter trafficDelay is always 0 as live traffic is not taken into account.

Try it in the Traffic Modes code sample.