Use historical traffic data to best estimate the time spent in traffic.
Use historical traffic data to make an optimistic estimate of what the duration in traffic will be.
Use historical traffic data to make a pessimistic estimate of what the duration in traffic will be.
Generated using TypeDoc
The assumptions to use when predicting duration in traffic. Specified as part of a
DirectionsRequest
orDistanceMatrixRequest
. Specify these by value, or by using the constant's name. For example,'bestguess'
orgoogle.maps.TrafficModel.BEST_GUESS
.Access by calling
const {TrafficModel} = await google.maps.importLibrary("routes")
. See https://developers.google.com/maps/documentation/javascript/libraries.