Options
All
  • Public
  • Public/Protected
  • All
Menu

A distance matrix query sent by the DistanceMatrixService containing arrays of origin and destination locations, and various options for computing metrics.

see

Maps JavaScript API

Hierarchy

  • DistanceMatrixRequest

Index

Properties

Optional avoidFerries

avoidFerries: undefined | boolean

If true, instructs the Distance Matrix service to avoid ferries where possible.

see

Maps JavaScript API

Optional avoidHighways

avoidHighways: undefined | boolean

If true, instructs the Distance Matrix service to avoid highways where possible.

see

Maps JavaScript API

Optional avoidTolls

avoidTolls: undefined | boolean

If true, instructs the Distance Matrix service to avoid toll roads where possible.

see

Maps JavaScript API

destinations

destinations: (string | LatLng | LatLngLiteral | Place)[]

An array containing destination address strings, or LatLng, or Place objects, to which to calculate distance and time.

see

Maps JavaScript API

Optional drivingOptions

drivingOptions: undefined | DrivingOptions

Settings that apply only to requests where travelMode is DRIVING. This object will have no effect for other travel modes.

see

Maps JavaScript API

origins

origins: (string | LatLng | LatLngLiteral | Place)[]

An array containing origin address strings, or LatLng, or Place objects, from which to calculate distance and time.

see

Maps JavaScript API

Optional region

region: undefined | string

Region code used as a bias for geocoding requests.

see

Maps JavaScript API

Optional transitOptions

transitOptions: undefined | TransitOptions

Settings that apply only to requests where travelMode is TRANSIT. This object will have no effect for other travel modes.

see

Maps JavaScript API

travelMode

travelMode: TravelMode

Type of routing requested.

see

Maps JavaScript API

Optional unitSystem

unitSystem: undefined | METRIC | IMPERIAL

Preferred unit system to use when displaying distance.

default

UnitSystem.METRIC

see

Maps JavaScript API

Generated using TypeDoc