Class ScooterSpecification

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

  • public final class ScooterSpecification
    extends java.lang.Object

    Scooter specific settings.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean allowScooterOnHighway
      Specifies whether scooter is allowed on highway or not.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScooterSpecification()
      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

      • 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 Detail

      • ScooterSpecification

        public ScooterSpecification()

        Creates a new instance.

    • 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