类 WalkingOptions.Builder

java.lang.Object
ai.nextbillion.kits.directions.WalkingOptions.Builder
封闭类:
WalkingOptions

public abstract static class WalkingOptions.Builder extends Object
This builder is used to create a new object with specifications relating to walking directions.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • walkingSpeed

      public abstract WalkingOptions.Builder walkingSpeed(@Nullable Double 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

      public abstract WalkingOptions.Builder walkwayBias(@Nullable 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). 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

      public abstract WalkingOptions.Builder alleyBias(@Nullable Double 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

      public abstract WalkingOptions build()
      Builds a WalkingOptions object with specified configurations.
      返回:
      WalkingOptions object