public class

RouteDirection

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.na.RouteDirection

Class Overview

Class containing the relevant information for one direction of a route

Summary

Public Methods
boolean equals(Object obj)
static RouteDirection fromJson(JsonParser parser)
Creates a RoutingDirection object from a json representation
List<DirectionsEvent> getDirectionsEvents()
Get the directions events i.e.
List<DirectionsString> getDirectionsStrings()
Gets the detailed direction info passed back from a route solving operation.
Date getEta()
Gets the estimated arrival time for this segment of the route
Geometry getGeometry()
Decompresses the geometry for the route direction and returns it.
double getLength()
Gets the length of this segment of the route
RouteManeuverType getManeuver()
Gets the maneuver used to perform this direction (E.g.
double getMinutes()
Gets the time this segment of the route will take to traverse
String getText()
Gets the textual representation of the direction (e.g.
int hashCode()
String toString()
Returns string representation of the class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static RouteDirection fromJson (JsonParser parser)

Creates a RoutingDirection object from a json representation

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

public List<DirectionsEvent> getDirectionsEvents ()

Get the directions events i.e. passing state boundaries, etc. from the solve operation.

Returns
List<DirectionsEvent> List of directions events.

public List<DirectionsString> getDirectionsStrings ()

Gets the detailed direction info passed back from a route solving operation.

Returns
List<DirectionsString> the detailed direction info passed back from a route solving operation

public Date getEta ()

Gets the estimated arrival time for this segment of the route

Returns
Date the estimated arrival time for this segment of the route

public Geometry getGeometry ()

Decompresses the geometry for the route direction and returns it.

Returns
Geometry the decompressed geometry for the routing direction

public double getLength ()

Gets the length of this segment of the route

Returns
double the length of this segment of the route

public RouteManeuverType getManeuver ()

Gets the maneuver used to perform this direction (E.g. Depart, Go Straight, etc)

Returns
RouteManeuverType the maneuver used to perform this direction

public double getMinutes ()

Gets the time this segment of the route will take to traverse

Returns
double the time this segment of the route will take to traverse

public String getText ()

Gets the textual representation of the direction (e.g. Turn right on Main Street)

Returns
String the textual representation of the direction

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