public class RouteResult extends java.lang.Object implements java.io.Serializable, BatchableRoutingResponse
Modifier and Type | Field and Description |
---|---|
protected RouteResponseError |
error |
protected OptimizedWaypoint[] |
optimizedWaypoints |
protected ResultReport |
resultReport |
protected FullRoute[] |
routes |
protected java.lang.String |
version |
Constructor and Description |
---|
RouteResult() |
Modifier and Type | Method and Description |
---|---|
void |
accept(BatchableRoutingResponseVisitor visitor) |
java.lang.String |
getErrorMessage() |
java.util.List<OptimizedWaypoint> |
getOptimizedWaypoints() |
ResultReport |
getResultReport() |
java.util.List<FullRoute> |
getRoutes() |
boolean |
hasError() |
boolean |
hasResults() |
protected java.lang.String version
protected FullRoute[] routes
protected OptimizedWaypoint[] optimizedWaypoints
protected ResultReport resultReport
protected RouteResponseError error
public java.util.List<FullRoute> getRoutes()
public java.util.List<OptimizedWaypoint> getOptimizedWaypoints()
public ResultReport getResultReport()
public boolean hasError()
hasError
in interface com.tomtom.online.sdk.common.service.ServiceResponse
public java.lang.String getErrorMessage()
getErrorMessage
in interface com.tomtom.online.sdk.common.service.ServiceResponse
public boolean hasResults()
public void accept(BatchableRoutingResponseVisitor visitor)
accept
in interface com.tomtom.online.sdk.common.util.Visitable<BatchableRoutingResponseVisitor>