TimeDistanceMatrixLocation class

A class that denotes a source or destination location data in a Matrix.

Includes the snappedDistance and location, the ORSCoordinate of the location.

Constructors

TimeDistanceMatrixLocation({required double snappedDistance, required ORSCoordinate location})
const
TimeDistanceMatrixLocation.fromJson(Map<String, dynamic> json)
Generates a TimeDistanceMatrixLocation from a Map having String keys 'latitude' and 'longitude', respectively having latitude and longitude as double values.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
location ORSCoordinate
The coordinate of the location.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snappedDistance double
The snapped distance of the location.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Generates a Map having String keys 'snapped_distance' and 'location' which has longitude and latitude as a List of double values.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override