WalkingOptions

@Serializable
data class WalkingOptions(val walkingSpeed: Double? = null, val walkwayBias: Double? = null, val alleyBias: Double? = null)

Class for specifying options for use with the walking profile.

Since

4.8.0

Constructors

Link copied to clipboard
constructor(walkingSpeed: Double? = null, walkwayBias: Double? = null, alleyBias: Double? = null)

Types

Link copied to clipboard
class Builder

Builder class for creating WalkingOptions instances.

Properties

Link copied to clipboard
@SerialName(value = "alley_bias")
val alleyBias: Double? = null

A bias which determines whether the route should prefer or avoid the use of alleys. The allowed range of values is from -1 to 1, where -1 indicates indicates preference to avoid alleys, 1 indicates preference to favor alleys, and 0 indicates no preference (the default).

Link copied to clipboard
@SerialName(value = "walking_speed")
val walkingSpeed: Double? = null

Walking speed in meters per second. Must be between 0.14 and 6.94 meters per second. Defaults to 1.42 meters per second

Link copied to clipboard
@SerialName(value = "walkway_bias")
val walkwayBias: Double? = null

A bias which determines whether the route should prefer or avoid the use of roads or paths that are set aside for pedestrian-only use (walkways). The allowed range of values is from -1 to 1, where -1 indicates indicates preference to avoid walkways, 1 indicates preference to favor walkways, and 0 indicates no preference (the default).

Functions

Link copied to clipboard

Creates a builder initialized with the current values of the WalkingOptions instance.