public class

ClosestFacilityResult

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

Class Overview

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

Summary

[Expand]
Inherited Fields
From class com.esri.core.tasks.na.NAResult
Public Constructors
ClosestFacilityResult()
Public Methods
boolean equals(Object obj)
static ClosestFacilityResult fromJson(JsonParser parser)
Creates a ClosestFacilityResult object from a JSON representation.
FeatureSet getFacilities()
Gets the FeatureSet representing the facilities used to calculate the closest facility.
FeatureSet getIncidents()
Gets the FeatureSet representing the incidents from which to calculate the closest facility.
List<Route> getRoutes()
Gets the list of routes returned by the server.
int hashCode()
String toString()
Returns a string representation of the class.
[Expand]
Inherited Methods
From class com.esri.core.tasks.na.NAResult
From class java.lang.Object

Public Constructors

public ClosestFacilityResult ()

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static ClosestFacilityResult fromJson (JsonParser parser)

Creates a ClosestFacilityResult object from a JSON representation.

Parameters
parser JsonParser: the parser containing the JSON
Returns
ClosestFacilityResult ClosestFacilityResult the object created from the JSON
Throws
Exception any exception during JSON parsing

public FeatureSet getFacilities ()

Gets the FeatureSet representing the facilities used to calculate the closest facility.

Returns
FeatureSet the facilities used to calculate the closest facility

public FeatureSet getIncidents ()

Gets the FeatureSet representing the incidents from which to calculate the closest facility.

Returns
FeatureSet the incidents from which to calculate the closest facility

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 int hashCode ()

Returns
int

public String toString ()

Returns a 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