TimeDistanceMatrix class
A class that encapsulates the matrix of travel times between sources and destinations.
Includes the travel time durations between each pair of points, the destinations and the sources.
Constructors
-
TimeDistanceMatrix({required List<
List< durations, required List<double> >List< distances, required List<double> >TimeDistanceMatrixLocation> destinations, required List<TimeDistanceMatrixLocation> sources}) -
const
-
TimeDistanceMatrix.fromJson(Map<
String, dynamic> json) -
Generate a TimeDistanceMatrix of travel times between the sources and
destinations from a Map having keys 'durations', 'destinations',
and 'sources'.
factory
Properties
-
destinations
→ List<
TimeDistanceMatrixLocation> -
The destination values of the Matrix.
final
-
distances
→ List<
List< double> > -
The destinations of the Matrix Routes
final
-
durations
→ List<
List< double> > -
The travel times of the Matrix Routes
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ List<
TimeDistanceMatrixLocation> -
The source values of the Matrix.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the TimeDistanceMatrix to a Map having
String
keys 'distances', 'durations', 'destinations', and 'sources'. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override