Class RouteStop

  • java.lang.Object
    • com.here.sdk.routing.RouteStop

  • public final class RouteStop
    extends java.lang.Object

    Route stop that should be used together with import route functionality. It specifies location index within provided route locations track. Route stop can have additional stop delay, which will be included in expected time to arrival. During navigation the stop will be treated as stopover and will be reported as milestone when passing-by. Only available for the Navigate licence.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int locationIndex
      Index of location, used for route stop.
      Duration stopDuration
      Time that will be spent on route stop.
    • Constructor Summary

      Constructors 
      Constructor Description
      RouteStop​(int locationIndex)
      Creates a new instance.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • locationIndex

        public int locationIndex

        Index of location, used for route stop. Index should be >= 1, which prevents user from using origin location as route stop.

      • stopDuration

        @NonNull
        public Duration stopDuration

        Time that will be spent on route stop.

    • Constructor Detail

      • RouteStop

        public RouteStop​(int locationIndex)

        Creates a new instance.

        Parameters:
        locationIndex -

        Index of location, used for route stop. Index should be >= 1, which prevents user from using origin location as route stop.