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

    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()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ExternalRoute

      public ExternalRoute​(float durationInSeconds, float durationIgnoringTrafficDelayInSeconds, boolean mayContainSelfIntersections, java.util.ArrayList<ExternalRoutePoint> routePoints)
  • Method Details

    • 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 class java.lang.Object