Class Route


  • public abstract class Route
    extends java.lang.Object
    A class representing a calculated route.
    • Constructor Detail

      • Route

        public Route()
    • Method Detail

      • 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.