NavigationInfoHandler

class NavigationInfoHandler : SessionService

Computes NavigationInfo for a given user position along an itinerary.

It caches per-coordinate information from the itinerary on assignment so that each subsequent navigation-info request avoids recomputing the whole itinerary.

Properties

Link copied to clipboard

The itinerary used to compute navigation info. Assigning a new value rebuilds the internal cache.

Functions

Link copied to clipboard
open override fun deinit()

Releases the resources held by this service — cancels coroutines, unregisters sensors, clears cached data. Called by the session at end-of-life; not intended to be called by service consumers.

Link copied to clipboard

Computes the navigation info for the given user position.