Class RefreshRouteOptions

java.lang.Object
com.here.NativeBase
com.here.sdk.routing.RefreshRouteOptions

@Deprecated public final class RefreshRouteOptions extends NativeBase
Deprecated.

Will be removed in v4.28.0. Use the RoutingOptions class instead.

The options to specify how to refresh an already calculated route identified by a RouteHandle. All the options that may result in a new route shape are ignored as no new route is calculated. Instead, only the data that accompanies a route, such as traffic information, can be refreshed. Therefore, the following route options are ignored: RouteOptions.alternatives, RouteOptions.arrivalTime, and RouteOptions.optimizationMode. If new AvoidanceOptions are specified, they are ignored as well and instead new SectionNotice's are generated that indicate where the requested AvoidanceOptions are violated. Note that when EVCarOptions.ensureReachability is set to true, the route refresh request will fail as this option is incompatible with a fixed route shape. If any of the ignored options are important, consider calculating a new route instead.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Constructor Details

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull TransportMode transportMode)
      Deprecated.

      Constructs a RefreshRouteOptions object with TransportMode.

      Parameters:
      transportMode -

      Updates the transport mode for the route.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull CarOptions carOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with CarOptions.

      Parameters:
      carOptions -

      Converts the route to a car route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull TruckOptions truckOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with TruckOptions.

      Parameters:
      truckOptions -

      Converts the route to a truck route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull PedestrianOptions pedestrianOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with PedestrianOptions.

      Parameters:
      pedestrianOptions -

      Converts the route to a pedestrian route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull ScooterOptions scooterOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with ScooterOptions.

      Parameters:
      scooterOptions -

      Converts the route to a scooter route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull TaxiOptions taxiOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with TaxiOptions.

      Parameters:
      taxiOptions -

      Converts the route to a taxi route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull EVCarOptions evCarOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with EVCarOptions.

      Parameters:
      evCarOptions -

      Converts the route to an electric car route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull EVTruckOptions evTruckOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with EVTruckOptions.

      Parameters:
      evTruckOptions -

      Converts the route to an electric truck route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull BicycleOptions bicycleOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with BicycleOptions.

      Parameters:
      bicycleOptions -

      Converts the route to a bicycle route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull BusOptions busOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with BusOptions.

      Parameters:
      busOptions -

      Converts the route to a bus route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.

    • RefreshRouteOptions

      public RefreshRouteOptions(@NonNull PrivateBusOptions privateBusOptions)
      Deprecated.

      Constructs a RefreshRouteOptions object with PrivateBusOptions.

      Parameters:
      privateBusOptions -

      Converts the route to a private bus route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.NO_ROUTE_FOUND error will be triggered.