Class RoutingOptions

java.lang.Object
com.cercalia.sdk.model.routing.RoutingOptions

public final class RoutingOptions extends Object
Options for route calculation.
  • Method Details

    • builder

      public static RoutingOptions.Builder builder()
      Returns:
      A new builder instance.
    • getVehicleType

      @Nullable public @Nullable VehicleType getVehicleType()
      Returns:
      The vehicle type for routing.
    • getWeight

      @Nullable public @Nullable RouteWeight getWeight()
      Returns:
      The optimization weight criteria.
    • getAvoidTolls

      @Nullable public @Nullable Boolean getAvoidTolls()
      Returns:
      Whether to avoid toll roads.
    • getReport

      @Nullable public @Nullable Boolean getReport()
      Returns:
      Whether to return a detailed report.
    • getNet

      @Nullable public @Nullable RouteNetwork getNet()
      Returns:
      The road network to use.
    • getDepartureTime

      @Nullable public @Nullable String getDepartureTime()
      Returns:
      The departure time in YYYYMMDDHHmm format.
    • getAlternatives

      @Nullable public @Nullable Integer getAlternatives()
      Returns:
      Number of alternative routes requested.
    • getDirection

      @Nullable public @Nullable String getDirection()
      Returns:
      The direction of the route (forward or backward).
    • getReorder

      @Nullable public @Nullable Boolean getReorder()
      Returns:
      Whether to reorder intermediate waypoints for optimization.
    • getStartWindow

      @Nullable public @Nullable String getStartWindow()
      Returns:
      The start of the time window for arrival/departure.
    • getEndWindow

      @Nullable public @Nullable String getEndWindow()
      Returns:
      The end of the time window for arrival/departure.
    • getBlockRealtime

      @Nullable public @Nullable Boolean getBlockRealtime()
      Returns:
      Whether to block routes with real-time traffic incidents.
    • getAvoidRealtime

      @Nullable public @Nullable Boolean getAvoidRealtime()
      Returns:
      Whether to avoid routes with real-time traffic incidents.
    • getBlockFerries

      @Nullable public @Nullable Boolean getBlockFerries()
      Returns:
      Whether to block routes that include ferries.
    • getAvoidFerries

      @Nullable public @Nullable Boolean getAvoidFerries()
      Returns:
      Whether to avoid routes that include ferries.
    • getWaypoints

      @Nullable public @Nullable List<Coordinate> getWaypoints()
      Returns:
      The list of intermediate waypoints.
    • getTruckWeight

      @Nullable public @Nullable Integer getTruckWeight()
      Returns:
      The truck weight in kilograms.
    • getTruckAxleWeight

      @Nullable public @Nullable Integer getTruckAxleWeight()
      Returns:
      The truck axle weight in kilograms.
    • getTruckHeight

      @Nullable public @Nullable Integer getTruckHeight()
      Returns:
      The truck height in centimeters.
    • getTruckWidth

      @Nullable public @Nullable Integer getTruckWidth()
      Returns:
      The truck width in centimeters.
    • getTruckLength

      @Nullable public @Nullable Integer getTruckLength()
      Returns:
      The truck length in centimeters.
    • getTruckMaxVelocity

      @Nullable public @Nullable Integer getTruckMaxVelocity()
      Returns:
      The maximum velocity for the truck in km/h.
    • getBlockTruckWeight

      @Nullable public @Nullable Boolean getBlockTruckWeight()
      Returns:
      Whether to block roads exceeding truck weight.
    • getAvoidTruckWeight

      @Nullable public @Nullable Boolean getAvoidTruckWeight()
      Returns:
      Whether to avoid roads exceeding truck weight.
    • getBlockTruckAxleWeight

      @Nullable public @Nullable Boolean getBlockTruckAxleWeight()
      Returns:
      Whether to block roads exceeding truck axle weight.
    • getAvoidTruckAxleWeight

      @Nullable public @Nullable Boolean getAvoidTruckAxleWeight()
      Returns:
      Whether to avoid roads exceeding truck axle weight.
    • getBlockTruckHeight

      @Nullable public @Nullable Boolean getBlockTruckHeight()
      Returns:
      Whether to block roads exceeding truck height.
    • getAvoidTruckHeight

      @Nullable public @Nullable Boolean getAvoidTruckHeight()
      Returns:
      Whether to avoid roads exceeding truck height.
    • getBlockTruckLength

      @Nullable public @Nullable Boolean getBlockTruckLength()
      Returns:
      Whether to block roads exceeding truck length.
    • getAvoidTruckLength

      @Nullable public @Nullable Boolean getAvoidTruckLength()
      Returns:
      Whether to avoid roads exceeding truck length.
    • getBlockTruckWidth

      @Nullable public @Nullable Boolean getBlockTruckWidth()
      Returns:
      Whether to block roads exceeding truck width.
    • getAvoidTruckWidth

      @Nullable public @Nullable Boolean getAvoidTruckWidth()
      Returns:
      Whether to avoid roads exceeding truck width.