HorizonSnapshot

class HorizonSnapshot(val paths: List<HorizonPath>, val positions: List<HorizonPosition>)

Snapshot of the horizon provided by the horizon engine, based on a set of previously registered horizon subscription options. Subscription options define the extent of the paths in the horizon as well as which map attributes are collected for those paths.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

paths

The list of horizon paths, consisting of the main path and zero or more sub-paths. The main path is the path on which the vehicle is located. A sub-path is any path in the horizon snapshot that is not the main path.

positions

The list of horizon positions ordered by decreasing likelihood of match. The first position is the best map-matched position. If the first position is off-road, there may be other on-road positions following it that indicate possible places for the vehicle on the roads around it, but the vehicle is still considered to be driving off-road.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard

Returns the tree distance to the given horizon element.

Link copied to clipboard

Returns the elements ahead of the vehicle on the main path, within the given distance.

Returns the elements of the given type that are ahead of the vehicle on the main path, within the given distance.

Returns the elements of the given types that are ahead of the vehicle on the main path, within the given distance.

Link copied to clipboard

Returns the main horizon path. The main path is the path on which the vehicle is located.

Link copied to clipboard

Returns the list of horizon sub-paths. A sub-path is any path that is not the main path. The main path is the path on which the vehicle is located.

Properties

Link copied to clipboard
Link copied to clipboard