Class RouteResult
- java.lang.Object
 - 
- com.esri.arcgisruntime.tasks.networkanalysis.RouteResult
 
 
- 
public final class RouteResult extends java.lang.ObjectRepresents the result ofRouteTask.solveRouteAsync(RouteParameters). The result is a collection of computed routes, barriers used in the computation, and messages generated during the process.- Since:
 - 100.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDirectionsLanguage()Gets the language used when computing directions.java.util.List<java.lang.String>getMessages()Gets the informational messages that were generated while computing routes.java.util.List<PointBarrier>getPointBarriers()Gets the point barriers used in the route computation.java.util.List<PolygonBarrier>getPolygonBarriers()Gets the polygon barriers used in the route computation.java.util.List<PolylineBarrier>getPolylineBarriers()Gets the polyline barriers used in the route computation.java.util.List<Route>getRoutes()Gets the List of routes. 
 - 
 
- 
- 
Method Detail
- 
getDirectionsLanguage
public java.lang.String getDirectionsLanguage()
Gets the language used when computing directions. The list of supported languages can be obtained by callingRouteTaskInfo.getSupportedLanguages().- Returns:
 - the directions language
 - Since:
 - 100.0.0
 
 
- 
getMessages
public java.util.List<java.lang.String> getMessages()
Gets the informational messages that were generated while computing routes.- Returns:
 - an unmodifiable list of the messages
 - Since:
 - 100.0.0
 
 
- 
getPointBarriers
public java.util.List<PointBarrier> getPointBarriers()
Gets the point barriers used in the route computation. Only available ifRouteParameters.setReturnPointBarriers(boolean)is set.- Returns:
 - an unmodifiable list of the point barriers
 - Since:
 - 100.0.0
 - See Also:
 RouteParameters.getPointBarriers(),RouteParameters.setPointBarriers(ArcGISFeatureTable, QueryParameters)
 
- 
getPolylineBarriers
public java.util.List<PolylineBarrier> getPolylineBarriers()
Gets the polyline barriers used in the route computation. Only available ifRouteParameters.setReturnPolylineBarriers(boolean)is set.- Returns:
 - an unmodifiable list of the polyline barriers
 - Since:
 - 100.0.0
 - See Also:
 RouteParameters.getPolylineBarriers(),RouteParameters.setPolylineBarriers(ArcGISFeatureTable, QueryParameters)
 
- 
getPolygonBarriers
public java.util.List<PolygonBarrier> getPolygonBarriers()
Gets the polygon barriers used in the route computation. Only available ifRouteParameters.setReturnPolygonBarriers(boolean)is set.- Returns:
 - an unmodifiable list of the polygon barriers
 - Since:
 - 100.0.0
 - See Also:
 RouteParameters.getPolygonBarriers(),RouteParameters.setPolygonBarriers(ArcGISFeatureTable, QueryParameters)
 
- 
getRoutes
public java.util.List<Route> getRoutes()
Gets the List of routes. Each element represents an independent route with its own driving directions. Stops are grouped into different routes based onStop.setRouteName(String)- Returns:
 - an unmodifiable list of the routes
 - Since:
 - 100.0.0
 
 
 - 
 
 -