Options
All
  • Public
  • Public/Protected
  • All
Menu

A single element of a response to a DistanceMatrixService request, which contains the duration and distance from one origin to one destination.

see

Maps JavaScript API

Hierarchy

  • DistanceMatrixResponseElement

Index

Properties

distance

distance: Distance

The distance for this origin-destination pairing. This property may be undefined as the distance may be unknown.

see

Maps JavaScript API

duration

duration: Duration

The duration for this origin-destination pairing. This property may be undefined as the duration may be unknown.

see

Maps JavaScript API

duration_in_traffic

duration_in_traffic: Duration

The duration for this origin-destination pairing, taking into account the traffic conditions indicated by the trafficModel property. This property may be undefined as the duration may be unknown. Only available to Premium Plan customers when {@link DistanceMatrixRequest#drivingOptions drivingOptions} is defined when making the request.

see

Maps JavaScript API

fare

The total fare for this origin-destination pairing. Only applicable to transit requests.

see

Maps JavaScript API

status

The status of this particular origin-destination pairing.

see

Maps JavaScript API

Generated using TypeDoc