PedestrianOptions
public struct PedestrianOptions : Hashable
All the options to specify how a pedestrian route should be calculated.
-
Specifies the common route calculation options.
Declaration
Swift
public var routeOptions: RouteOptions -
Customize textual content returned from the route calculation, such as localization, format, and unit system.
Declaration
Swift
public var textOptions: RouteTextOptions -
Options to specify restrictions for route calculations. By default no restrictions are applied.
Declaration
Swift
public var avoidanceOptions: AvoidanceOptions -
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
RoutingErrorfor details. The default speed is 1 meter per second.Declaration
Swift
public var walkSpeedInMetersPerSecond: Double -
Creates a new instance.
Declaration
Swift
public init(routeOptions: RouteOptions = RouteOptions(), textOptions: RouteTextOptions = RouteTextOptions(), avoidanceOptions: AvoidanceOptions = AvoidanceOptions(), walkSpeedInMetersPerSecond: Double = 1.0) -
Returns PedestrianOptions instance with default values used in SDK.
Declaration
Swift
public static func fromDefaultParameterConfiguration() -> PedestrianOptionsReturn Value
A
PedestrianOptionsinstance with default values used in SDK.