Package com.navmii.sdk.routecalculation
Class Route
java.lang.Object
com.navmii.sdk.routecalculation.Route
public abstract class Route
extends java.lang.Object
A class representing a calculated route.
-
Constructor Summary
Constructors Constructor Description Route()
-
Method Summary
Modifier and Type Method Description abstract MapRectangle
getBoundingBox()
Rectangle bounding the route geometry.abstract int
getEstimatedTime()
Estimated route time in seconds.abstract int
getEstimatedTimeIgnoringTrafficDelay()
Estimated route time in seconds not considering delays caused by traffic.abstract java.util.ArrayList<MapCoordinates>
getGeometry()
The geometry of the route.abstract int
getLength()
Length of route in meters.abstract java.lang.String
getName()
Route name.abstract java.util.ArrayList<MapCoordinates>
getRoutePlan()
Route plan.
-
Constructor Details
-
Route
public Route()
-
-
Method Details
-
getName
public abstract java.lang.String getName()Route name. Can be empty for short routes or in case of using server routing. -
getLength
public abstract int getLength()Length of route in meters. -
getEstimatedTime
public abstract int getEstimatedTime()Estimated route time in seconds. -
getEstimatedTimeIgnoringTrafficDelay
public abstract int getEstimatedTimeIgnoringTrafficDelay()Estimated route time in seconds not considering delays caused by traffic. The method returns non-zero value only if computeEstimatedTimeIgnoringTrafficDelay was set to 'true' in route calculation options (use RouteCalculationOptions.setComputeEstimatedTimeIgnoringTrafficDelay). -
getGeometry
The geometry of the route. The array contains ordered points of the route polyline. -
getBoundingBox
Rectangle bounding the route geometry. -
getRoutePlan
Route plan.
-