Package com.google.maps.model
Class DistanceMatrix
- java.lang.Object
-
- com.google.maps.model.DistanceMatrix
-
- All Implemented Interfaces:
java.io.Serializable
public class DistanceMatrix extends java.lang.Object implements java.io.Serializable
A complete result from a Distance Matrix API call.- See Also:
- Distance Matrix Results, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]
destinationAddresses
Destination addresses as returned by the API from your original request.java.lang.String[]
originAddresses
Origin addresses as returned by the API from your original request.DistanceMatrixRow[]
rows
An array of elements, each of which in turn contains a status, duration, and distance element.
-
Constructor Summary
Constructors Constructor Description DistanceMatrix(java.lang.String[] originAddresses, java.lang.String[] destinationAddresses, DistanceMatrixRow[] rows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
originAddresses
public final java.lang.String[] originAddresses
Origin addresses as returned by the API from your original request. These are formatted by the geocoder and localized according to the language parameter passed with the request.
-
destinationAddresses
public final java.lang.String[] destinationAddresses
Destination addresses as returned by the API from your original request. As withoriginAddresses
, these are localized if appropriate.
-
rows
public final DistanceMatrixRow[] rows
An array of elements, each of which in turn contains a status, duration, and distance element.
-
-
Constructor Detail
-
DistanceMatrix
public DistanceMatrix(java.lang.String[] originAddresses, java.lang.String[] destinationAddresses, DistanceMatrixRow[] rows)
-
-