generateHorizon

abstract fun generateHorizon(options: List<HorizonOptions>, navigationSnapshot: NavigationSnapshot): List<HorizonResult>

Provides horizon data for the given location, based on a list of previously registered sets of horizon subscription options.

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

Return

List of horizon result data consisting of one horizon snapshot and a list of vehicle positions per set of horizon subscription options, provided registerHorizonOptions was previously called to register each set of horizon subscription options. If a specific set of subscription options was not previously registered, neither horizon snapshot data nor vehicle positions will be generated for that set. If none of the sets of subscription options was registered before, the function will return an empty list.

Parameters

options

List of previously registered sets of subscription options.

navigationSnapshot

Snapshot of the current navigation session. The required location information is extracted from this navigation snapshot.