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

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

public class Route
extends Object

Class holding the information for a single route

Since:
10.1.1

Constructor Summary
Route()
          Empty constructor
 
Method Summary
 boolean equals(Object obj)
           
 Envelope getEnvelope()
          Gets the envelope encompassing the route
 Graphic getRoute()
          Gets the graphic for the full route (polyline)
 int getRouteID()
          Gets the integer ID of the route
 String getRouteName()
          Gets the name of the route
 List<RoutingDirection> getRoutingDirections()
          Gets the list of turn by turn directions for this route
 double getTotalDriveTime()
          Gets the total drive time of the route
 double getTotalLength()
          Gets the total length of the route (distance)
 double getTotalTime()
          Gets the total time of the route
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Route

public Route()
Empty constructor

Since:
10.1.1
Method Detail

getRoute

public Graphic getRoute()
Gets the graphic for the full route (polyline)

Returns:
the route graphic for the full route
Since:
10.1.1

getRouteID

public int getRouteID()
Gets the integer ID of the route

Returns:
the routeID integer ID of the route
Since:
10.1.1

getRouteName

public String getRouteName()
Gets the name of the route

Returns:
the routeName the name of the route
Since:
10.1.1

getTotalLength

public double getTotalLength()
Gets the total length of the route (distance)

Returns:
the totalLength the total length of the route (distance)
Since:
10.1.1

getTotalTime

public double getTotalTime()
Gets the total time of the route

Returns:
the totalTime the total time of the route
Since:
10.1.1

getTotalDriveTime

public double getTotalDriveTime()
Gets the total drive time of the route

Returns:
the totalDriveTime the total drive time of the route
Since:
10.1.1

getEnvelope

public Envelope getEnvelope()
Gets the envelope encompassing the route

Returns:
the envelope the envelope encompassing the route
Since:
10.1.1

getRoutingDirections

public List<RoutingDirection> getRoutingDirections()
Gets the list of turn by turn directions for this route

Returns:
the routingDirections the list of turn by turn directions for this route
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.