-
-
-
-
-
-
Array of arrays that represent the distances matrix in row-major order.
distances[i][j]
gives the route distance from thei
‘thsource
to thej
'thdestination
. The distance between the same coordinate is always0
. Distance fromi
toj
is not always the same as fromj
toi
. If a route cannot be found, the result isnull
.Seealso
distance(from:to:)
-
Array of arrays that represent the travel times matrix in row-major order.
travelTimes[i][j]
gives the travel time from thei
‘thsource
to thej
'thdestination
. The duration between the same coordinate is always0
. Travel time fromi
toj
is not always the same as fromj
toi
. If a duration cannot be found, the result isnull
.Seealso
travelTime(from:to:)
-
Returns route distance between specified source and destination.
-
Returns expected travel time between specified source and destination.
-
-
-