类 WalkingOptions.Builder
java.lang.Object
ai.nextbillion.kits.directions.WalkingOptions.Builder
- 封闭类:
- WalkingOptions
This builder is used to create a new object with specifications relating to walking directions.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract WalkingOptions.BuilderA bias which determines whether the route should prefer or avoid the use of alleys.abstract WalkingOptionsbuild()Builds a WalkingOptions object with specified configurations.abstract WalkingOptions.BuilderwalkingSpeed(Double walkingSpeed) Walking speed in meters per second.abstract WalkingOptions.BuilderwalkwayBias(Double walkwayBias) 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).
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
walkingSpeed
Walking speed in meters per second. Must be between 0.14 and 6.94 meters per second. Defaults to 1.42 meters per second- 参数:
walkingSpeed- in meters per second- 返回:
- this builder
-
walkwayBias
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).- 参数:
walkwayBias- bias to prefer or avoid walkways- 返回:
- this builder
-
alleyBias
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).- 参数:
alleyBias- bias to prefer or avoid alleys- 返回:
- this builder
-
build
Builds a WalkingOptions object with specified configurations.- 返回:
- WalkingOptions object
-