Package ai.nextbillion.maps.model
Class DistanceMatrixElement
java.lang.Object
ai.nextbillion.maps.model.DistanceMatrixElement
- All Implemented Interfaces:
java.io.Serializable
public class DistanceMatrixElement
extends java.lang.Object
implements java.io.Serializable
A single result corresponding to an origin/destination pair in a Distance Matrix response.
Be sure to check the status for each element, as a matrix response can have a mix of successful and failed elements depending on the connectivity of the origin and destination.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description Distancedistancedistanceindicates the total distance covered by this leg.DurationdurationThe total duration of this leg.Distancepredicted_durationDistanceraw_distance -
Constructor Summary
Constructors Constructor Description DistanceMatrixElement() -
Method Summary
-
Field Details
-
duration
The total duration of this leg. -
distance
distanceindicates the total distance covered by this leg. -
predicted_duration
-
raw_distance
-
-
Constructor Details
-
DistanceMatrixElement
public DistanceMatrixElement()
-