ExplicitDistancePolicy
public struct ExplicitDistancePolicy : PathSearchDistancePolicy
Policy that defines a search distance for the main path.
The main path is the path the user currently follows, extending along the most likely trajectory. If the horizon
options specify this policy, the HorizonEngine
only searches within an explicitly specified
distance when extending the main path. If a search distance is not provided, a default value will be used that
corresponds to a maximum horizon length of Defaults.pathSearchDistance
.
For more information on horizon paths see HorizonEngine
.
For more information on horizon options see HorizonOptions
.
To search along the entire route use the RouteLengthPolicy
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes instance of
ExplicitDistancePolicy
.Declaration
Swift
public init(searchDistance: PathSearchDistance = Defaults.pathSearchDistance)
Parameters
searchDistance
-
Contains default values for
See moreExplicitDistancePolicy
.Declaration
Swift
public enum Defaults
-
Declaration
Swift
public let searchDistance: PathSearchDistance