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.
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
.
-
Initializes instance of
ExplicitDistancePolicy
.Declaration
Swift
public init(searchDistance: PathSearchDistance)
Parameters
searchDistance
-
Declaration
Swift
public let searchDistance: PathSearchDistance