IndoorRouteOptions
public struct IndoorRouteOptions : Hashable
All the options to specify how an indoor route should be calculated.
-
Specifies the common route calculation options.
Note: Currently, only
RouteOptions.optimizationModeparameter is utilized for indoor route calculation.Declaration
Swift
public var routeOptions: RouteOptions -
The transport mode for route calculation.
Note: Indoor route sections of the resulting route will always be
VenueTransportMode.pedestrianin the current implementation. This option will affect only outdoor route sections.Declaration
Swift
public var transportMode: VenueTransportMode -
Options to specify restrictions for indoor route calculations. By default no restrictions are applied.
Declaration
Swift
public var indoorAvoidanceOptions: IndoorAvoidanceOptions -
Specifies the speed that will be used by the service as the speed for
VenueTransportModein meters per second. It influences the duration of segments along the route. The default speed is 1 meter per second.Declaration
Swift
public var speedInMetersPerSecond: Double -
Creates an object and assign default values for route options.
Parameters
- routeOptions: Specifies the common route calculation options.
Note: Currently, only
RouteOptions.optimizationModeparameter is utilized for indoor route calculation.- transportMode: The transport mode for route calculation.
Note: Indoor route sections of the resulting route will always be
VenueTransportMode.pedestrianin the current implementation. This option will affect only outdoor route sections.- indoorAvoidanceOptions: Options to specify restrictions for indoor route calculations. By default no restrictions are applied.
- speedInMetersPerSecond: Specifies the speed that will be used by the service as the speed
for
VenueTransportModein meters per second. It influences the duration of segments along the route. The default speed is 1 meter per second.
Declaration
Swift
public init(routeOptions: RouteOptions = RouteOptions(), transportMode: VenueTransportMode = VenueTransportMode.pedestrian, indoorAvoidanceOptions: IndoorAvoidanceOptions = IndoorAvoidanceOptions(), speedInMetersPerSecond: Double = 1.0)