public class DirectionsMatrixResponse extends Object
Constructor and Description |
---|
DirectionsMatrixResponse()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
String indicating the state of the response.
|
List<DirectionsWaypoint> |
getDestinations()
List of
DirectionsWaypoint objects. |
double[][] |
getDurations()
Durations as array of arrays representing the matrix in row-major order.
|
List<DirectionsWaypoint> |
getSources()
List of
DirectionsWaypoint objects. |
void |
setCode(String code)
String indicating the state of the response.
|
void |
setDestinations(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(List<DirectionsWaypoint> sources)
List of
DirectionsWaypoint objects. |
public DirectionsMatrixResponse()
public String getCode()
Ok
.public void setCode(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 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(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 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(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
.© 2015–2016 Mapbox. All rights reserved.