Package com.navmii.sdk.routecalculation
Class ExternalRoute
- java.lang.Object
-
- com.navmii.sdk.routecalculation.ExternalRoute
-
public final class ExternalRoute extends java.lang.Object
Class representing an external route.
-
-
Constructor Summary
Constructors Constructor Description ExternalRoute(float durationInSeconds, float durationIgnoringTrafficDelayInSeconds, boolean mayContainSelfIntersections, java.util.ArrayList<ExternalRoutePoint> routePoints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getDurationIgnoringTrafficDelayInSeconds()
Total route duration with no traffic delays, in seconds.float
getDurationInSeconds()
Total route duration, in seconds.boolean
getMayContainSelfIntersections()
True if the route may contain self-intersections, false otherwise.java.util.ArrayList<ExternalRoutePoint>
getRoutePoints()
An array of route points.java.lang.String
toString()
-
-
-
Constructor Detail
-
ExternalRoute
public ExternalRoute(float durationInSeconds, float durationIgnoringTrafficDelayInSeconds, boolean mayContainSelfIntersections, java.util.ArrayList<ExternalRoutePoint> routePoints)
-
-
Method Detail
-
getDurationInSeconds
public float getDurationInSeconds()
Total route duration, in seconds.
-
getDurationIgnoringTrafficDelayInSeconds
public float getDurationIgnoringTrafficDelayInSeconds()
Total route duration with no traffic delays, in seconds. Default value is zero indicating duration ignoring traffic delay is not available.
-
getMayContainSelfIntersections
public boolean getMayContainSelfIntersections()
True if the route may contain self-intersections, false otherwise. Default value is 'false'.
-
getRoutePoints
public java.util.ArrayList<ExternalRoutePoint> getRoutePoints()
An array of route points.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-