The calculation can take different traffic data into account. This is selected by options[trafficMode] and options[startTime]. By default, when none of these parameters are specified, the Matrix Routing API will automatically calculate the routes using an average traffic situation.
Constant
Calculates the routes using constant speeds for the selected vehicle, independent of any traffic conditions. Travel times are unaffected by rush hours, events, or other temporary changes in congestion.
If options[startTime] is specified, it will only be used as the reference time for toll calculation and will not affect travel times. Travel time profiles are not supported with this traffic mode.
The matrix calculation result will be the same when executing the same request at a different point in time, but it may change after updating data.
Average
Average traffic mode is also used for time-independent matrix calculation.
If options[startTime] is specified, the calculation will take into account the typical traffic situation for that day of week and time of day.
The matrix calculation result will be the same when executing the same request at a different point in time, but it may change after updating data.
Realistic
Calculates the routes using the typical and the live traffic situation.
If options[startTime] is not specified, 'now' will then be applied.
Use this traffic mode, if the matrix will then be used for the next minutes or very few hours.
As live traffic data changes frequently, the route calculation result may change when executing the same request at a different point in time.
Try it in the Traffic Modes code sample.