public class DirectionsMatrixResponse
extends java.lang.Object
| Constructor and Description |
|---|
DirectionsMatrixResponse()
Empty constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
String indicating the state of the response.
|
java.util.List<DirectionsWaypoint> |
getDestinations()
List of
DirectionsWaypoint objects. |
double[][] |
getDurations()
Durations as array of arrays representing the matrix in row-major order.
|
java.util.List<DirectionsWaypoint> |
getSources()
List of
DirectionsWaypoint objects. |
void |
setCode(java.lang.String code)
String indicating the state of the response.
|
void |
setDestinations(java.util.List<DirectionsWaypoint> destinations)
List of
DirectionsWaypoint objects. |
void |
setDurations(double[][] durations)
Durations as array of arrays representing the matrix in row-major order.
|
void |
setSources(java.util.List<DirectionsWaypoint> sources)
List of
DirectionsWaypoint objects. |
public DirectionsMatrixResponse()
public java.lang.String getCode()
Ok.public void setCode(java.lang.String code)
Ok.code - "Ok", "NoRoute", "ProfileNotFound", or "InvalidInput".public double[][] getDurations()
public void setDurations(double[][] durations)
durations - an array of array with each entry being a duration value given in seconds.public java.util.List<DirectionsWaypoint> getDestinations()
DirectionsWaypoint objects. Each waypoints is an input coordinate snapped to the road and path
network. The waypoints appear in the list in the order of the input coordinates, or in the order as specified in
the destinations query parameter.DirectionsWaypoint.public void setDestinations(java.util.List<DirectionsWaypoint> destinations)
DirectionsWaypoint objects. Each waypoints should be an input coordinate snapped to the road and
path network. The waypoints appear in the list in the order of the input coordinates, or in the order as specified
in the destinations query parameter.destinations - List object with each item being a DirectionsWaypoint.public java.util.List<DirectionsWaypoint> getSources()
DirectionsWaypoint objects. Each waypoints is an input coordinate snapped to the road and path
network. The waypoints appear in the list in the order of the input coordinates, or in the order as specified in
the sources query parameter.DirectionsWaypoint.public void setSources(java.util.List<DirectionsWaypoint> sources)
DirectionsWaypoint objects. Each waypoints should be an input coordinate snapped to the road and
path network. The waypoints appear in the list in the order of the input coordinates, or in the order as specified
in the sources query parameter.sources - List object with each item being a DirectionsWaypoint.