com.esri.core.tasks.ags.na
Class RoutingDirection

java.lang.Object
  extended by com.esri.core.tasks.ags.na.RoutingDirection

public class RoutingDirection
extends Object

Class containing the relevant information for one direction of a route

Since:
10.1.1

Constructor Summary
RoutingDirection()
          Empty Constructor
 
Method Summary
 boolean equals(Object obj)
           
static RoutingDirection fromJson(org.codehaus.jackson.JsonParser parser)
          Creates a RoutingDirection object from a json representation
 List<DirectionsString> getDirectionsStrings()
          Gets the detailed direction info passed back from a route solving operation.
 long 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
 RoutingManeuver getManeuver()
          Gets the maneuver used to perform this direction (E.g.
 String getText()
          Gets the textual representation of the direction (e.g.
 double getTime()
          Gets the time this segment of the route will take to traverse
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingDirection

public RoutingDirection()
Empty Constructor

Since:
10.1.1
Method Detail

getLength

public double getLength()
Gets the length of this segment of the route

Returns:
the length of this segment of the route
Since:
10.1.1

getTime

public double getTime()
Gets the time this segment of the route will take to traverse

Returns:
the time this segment of the route will take to traverse
Since:
10.1.1

getDirectionsStrings

public List<DirectionsString> getDirectionsStrings()
Gets the detailed direction info passed back from a route solving operation.

Returns:
the detailed direction info passed back from a route solving operation
Since:
10.1.1

getText

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

Returns:
the textual representation of the direction
Since:
10.1.1

getEta

public long getEta()
Gets the estimated arrival time for this segment of the route

Returns:
the estimated arrival time for this segment of the route
Since:
10.1.1

getManeuver

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

Returns:
the maneuver used to perform this direction
Since:
10.1.1

getGeometry

public Geometry getGeometry()
Decompresses the geometry for the route direction and returns it.

Returns:
the decompressed geometry for the routing direction
Since:
10.1.1

fromJson

public static RoutingDirection fromJson(org.codehaus.jackson.JsonParser parser)
                                 throws Exception
Creates a RoutingDirection object from a json representation

Parameters:
parser - the parser containing the json
Returns:
RoutingDirection the object created from the json
Throws:
Exception
Since:
10.1.1

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.