public class RouteResponse extends Object
| Constructor and Description |
|---|
RouteResponse(TravelOptions travelOptions,
org.json.JSONArray routes,
String code,
long requestTimeMillis) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
long |
getRequestTimeMillis() |
org.json.JSONArray |
getRoutes()
Returns generated routes in JSON format.
|
TravelOptions |
getTravelOptions() |
public RouteResponse(TravelOptions travelOptions, org.json.JSONArray routes, String code, long requestTimeMillis)
travelOptions - Travel configurationroutes - Response bodycode - route360 status code for the requestrequestTimeMillis - the milliseconds for server runtimepublic String getCode()
public long getRequestTimeMillis()
public TravelOptions getTravelOptions()
public org.json.JSONArray getRoutes()
Example:
[{"travelTime": 483, "length": 4064.2, "target_id": "target0", "source_id": "source0",
"segments": [{"travelTime": 483,"length": 4064.2324777363283,"endname": "target", "type": "CAR",
"startname": "source",
"points": [[6890540,1493497,37],[6890662,1493215,39]]}]}]
Copyright © 2017. All rights reserved.