Skip to content

Latest commit

 

History

History
70 lines (36 loc) · 2.68 KB

File metadata and controls

70 lines (36 loc) · 2.68 KB

See html formatted version

DistanceMatrixRequest interface

google.maps.DistanceMatrixRequest interface

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

Properties

undefined

Type:  boolean optional

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

undefined

Type:  boolean optional

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

undefined

Type:  boolean optional

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

undefined

Type:  Array<string|LatLng|Place>

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

undefined

Type:  DrivingOptions optional

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

undefined

Type:  Array<string|LatLng|Place>

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

undefined

Type:  string optional

Region code used as a bias for geocoding requests. Optional.

undefined

Type:  TransitOptions optional

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

undefined

Type:  TravelMode

Type of routing requested. Required.

undefined

Type:  UnitSystem optional

Preferred unit system to use when displaying distance. Optional; defaults to metric.