Class PedestrianOptions
- Last UpdatedMay 13, 2025
- 2 minute read
- java.lang.Object
-
- com.here.sdk.routing.PedestrianOptions
-
public final class PedestrianOptions extends java.lang.Object
All the options to specify how a pedestrian route should be calculated.
-
-
Field Summary
Fields Modifier and Type Field Description AvoidanceOptions
avoidanceOptions
Options to specify restrictions for route calculations.RouteOptions
routeOptions
Specifies the common route calculation options.RouteTextOptions
textOptions
Customize textual content returned from the route calculation, such as localization, format, and unit system.double
walkSpeedInMetersPerSecond
Specifies the speed that will be used by the service as the walking speed for pedestrian routing in meters per second.
-
Constructor Summary
Constructors Constructor Description PedestrianOptions()
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static PedestrianOptions
fromDefaultParameterConfiguration()
Returns PedestrianOptions instance with default values used in SDK.int
hashCode()
-
-
-
Field Detail
-
routeOptions
@NonNull public RouteOptions routeOptions
Specifies the common route calculation options.
-
textOptions
@NonNull public RouteTextOptions textOptions
Customize textual content returned from the route calculation, such as localization, format, and unit system.
-
avoidanceOptions
@NonNull public AvoidanceOptions avoidanceOptions
Options to specify restrictions for route calculations. By default no restrictions are applied.
-
walkSpeedInMetersPerSecond
public double walkSpeedInMetersPerSecond
Specifies the speed that will be used by the service as the walking speed for pedestrian routing in meters per second. It influences the duration of walking segments along the route. The provided value must be in the range [0.5, 2.0]. When the value is outside this range, an invalid parameter error is raised. Refer to
RoutingError
for details. The default speed is 1 meter per second.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
fromDefaultParameterConfiguration
@NonNull public static PedestrianOptions fromDefaultParameterConfiguration()
Returns PedestrianOptions instance with default values used in SDK.
- Returns:
A
PedestrianOptions
instance with default values used in SDK.
-
-