Class RouteHandle

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

  • public final class RouteHandle
    extends java.lang.Object

    Provides an opaque handle to the calculated Route. A handle encodes the calculated route. The route can be decoded from a handle at a later point in time as long as the service uses the same map data which was used during encoding. Note that the Route.getRouteHandle() is provided only if RouteOptions.enableRouteHandle is set before route calculation. A RouteHandle generated by the online RoutingEngine is not compatible with the OfflineRoutingEngine. Similarly, a RouteHandle from the OfflineRoutingEngine cannot be used with the online RoutingEngine. Using an incompatible RouteHandle results in a RoutingError.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String handle
      Handle value as it is provided by routing server.
    • Constructor Summary

      Constructors 
      Constructor Description
      RouteHandle​(java.lang.String handle)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • handle

        @NonNull
        public java.lang.String handle

        Handle value as it is provided by routing server.

    • Constructor Detail

      • RouteHandle

        public RouteHandle​(@NonNull
                           java.lang.String handle)

        Creates a new instance.

        Parameters:
        handle -

        Handle value as it is provided by routing server.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object