public final class

RouteResult

extends Object
java.lang.Object
   ↳ com.esri.arcgisruntime.tasks.networkanalysis.RouteResult

Class Overview

Represents the result of solveRouteAsync(RouteParameters). The result is a collection of computed routes, barriers used in the computation, and messages generated during the process.

Summary

Public Methods
String getDirectionsLanguage()
Gets the language used when computing directions.
List<String> getMessages()
Gets the informational messages that were generated while computing routes.
List<PointBarrier> getPointBarriers()
Gets the point barriers used in the route computation.
List<PolygonBarrier> getPolygonBarriers()
Gets the polygon barriers used in the route computation.
List<PolylineBarrier> getPolylineBarriers()
Gets the polyline barriers used in the route computation.
List<Route> getRoutes()
Gets the List of routes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getDirectionsLanguage ()

Gets the language used when computing directions. The list of supported languages can be obtained by calling getSupportedLanguages().

Returns
  • the directions language

public List<String> getMessages ()

Gets the informational messages that were generated while computing routes.

Returns
  • an unmodifiable list of the messages

public List<PointBarrier> getPointBarriers ()

Gets the point barriers used in the route computation. Only available if setReturnPointBarriers(boolean) is set.

Returns
  • an unmodifiable list of the point barriers

public List<PolygonBarrier> getPolygonBarriers ()

Gets the polygon barriers used in the route computation. Only available if setReturnPolygonBarriers(boolean) is set.

Returns
  • an unmodifiable list of the polygon barriers

public List<PolylineBarrier> getPolylineBarriers ()

Gets the polyline barriers used in the route computation. Only available if setReturnPolylineBarriers(boolean) is set.

Returns
  • an unmodifiable list of the polyline barriers

public 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 on setRouteName(String)

Returns
  • an unmodifiable list of the routes