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.

    Methods inherited from class java.lang.Object

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

  • 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

      public abstract java.util.ArrayList<MapCoordinates> getGeometry()
      The geometry of the route. The array contains ordered points of the route polyline.
    • getBoundingBox

      public abstract MapRectangle getBoundingBox()
      Rectangle bounding the route geometry.
    • getRoutePlan

      public abstract java.util.ArrayList<MapCoordinates> getRoutePlan()
      Route plan.