Interface CalculateRouteTruckModeOptions.Builder

    • Method Detail

      • avoidFerries

        CalculateRouteTruckModeOptions.Builder avoidFerries​(Boolean avoidFerries)

        Avoids ferries when calculating routes.

        Default Value: false

        Valid Values: false | true

        Parameters:
        avoidFerries - Avoids ferries when calculating routes.

        Default Value: false

        Valid Values: false | true

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • avoidTolls

        CalculateRouteTruckModeOptions.Builder avoidTolls​(Boolean avoidTolls)

        Avoids tolls when calculating routes.

        Default Value: false

        Valid Values: false | true

        Parameters:
        avoidTolls - Avoids tolls when calculating routes.

        Default Value: false

        Valid Values: false | true

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensions

        CalculateRouteTruckModeOptions.Builder dimensions​(TruckDimensions dimensions)

        Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.

        Parameters:
        dimensions - Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • weight

        CalculateRouteTruckModeOptions.Builder weight​(TruckWeight weight)

        Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.

        Parameters:
        weight - Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.
        Returns:
        Returns a reference to this object so that method calls can be chained together.