Options
All
  • Public
  • Public/Protected
  • All
Menu

The assumptions to use when predicting duration in traffic. Specified as part of a DirectionsRequest or DistanceMatrixRequest. Specify these by value, or by using the constant's name. For example, 'bestguess' or google.maps.TrafficModel.BEST_GUESS.

Access by calling const {TrafficModel} = await google.maps.importLibrary("routes"). See https://developers.google.com/maps/documentation/javascript/libraries.

Index

Enumeration Members

BEST_GUESS: "bestguess"

Use historical traffic data to best estimate the time spent in traffic.

OPTIMISTIC: "optimistic"

Use historical traffic data to make an optimistic estimate of what the duration in traffic will be.

PESSIMISTIC: "pessimistic"

Use historical traffic data to make a pessimistic estimate of what the duration in traffic will be.

Generated using TypeDoc