public class

RouteResult

extends NAResult
java.lang.Object
   ↳ com.esri.core.tasks.na.NAResult
     ↳ com.esri.core.tasks.na.RouteResult

Class Overview

Class containing the relevant information for the entire solve response. This includes all routes, as well as the stops, point/polyline/polygon barriers, and messages returned by the server.

Summary

[Expand]
Inherited Fields
From class com.esri.core.tasks.na.NAResult
Public Methods
boolean equals(Object obj)
static RouteResult fromJson(JsonParser parser)
Creates a RouteResult object from a json representation
List<Route> getRoutes()
Gets the list of routes returned by the server
FeatureSet getStops()
Gets the FeatureSet representing the stops used to perform routing
int hashCode()
String toString()
Returns string representation of the class.
[Expand]
Inherited Methods
From class com.esri.core.tasks.na.NAResult
From class java.lang.Object

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static RouteResult fromJson (JsonParser parser)

Creates a RouteResult object from a json representation

Parameters
parser JsonParser: the parser containing the json
Returns
RouteResult RouteResult the object created from the json
Throws
Exception
Exception

public List<Route> getRoutes ()

Gets the list of routes returned by the server

Returns
List<Route> the list of routes returned by the server

public FeatureSet getStops ()

Gets the FeatureSet representing the stops used to perform routing

Returns
FeatureSet the stops used to perform routing

public int hashCode ()

Returns
int

public String toString ()

Returns string representation of the class. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

Returns
String