Class ScooterSpecification

java.lang.Object
com.here.sdk.transport.ScooterSpecification

public final class ScooterSpecification extends Object

Scooter specific settings.

  • Field Details

    • allowScooterOnHighway

      public boolean allowScooterOnHighway

      Specifies whether scooter is allowed on highway or not. True means scooter is allowed to use highways and false means otherwise. Defaults to false. Note that there is a similar parameter in AvoidanceOptions, to disallow highway usage, see RoadFeatures.CONTROLLED_ACCESS_HIGHWAY. As the avoidance options takes precedence, if this parameter is also used, then scooters are not allowed to use highways even if allowHighway is set to true. However, if no alternative route is possible, the calculated route may use highways. In such a case, a SectionNotice will be provided in the related Section to indicate that the highway usage restriction is violated on this route. A few examples:

      1 - If no avoidance option is set, and allowHighway = false, when no route is found without highway usage, a notice is received.

      2 - If no avoidance option is set, and allowHighway = true, when no route is found without highway usage, no notice is received.

      3 - If only avoid[features] = controlledAccessHighway is set, when no route is found without highway usage, a notice is received.

      4 - If both avoid[features] = controlledAccessHighway and allowHighway = true are set, when no route is found without highway usage, a notice is received.

  • Constructor Details

    • ScooterSpecification

      public ScooterSpecification()

      Creates a new instance.

  • Method Details