Route

class Route(engineRoute: Route, metadataRepository: MetadataRepository)

A wrapper around the native EngineRoute object, representing a complete route from a starting point to a destination, with various alternative paths depending on user preferences or fallback strategies.

Constructors

Link copied to clipboard
constructor(engineRoute: Route, metadataRepository: MetadataRepository)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns an accessible-friendly version of the optimal route.

Link copied to clipboard

Returns a fallback route that bypasses alerts if the optimal route failed due to routing around alerts.

Link copied to clipboard

Returns a fallback route that allows bypassing level transition restrictions, such as stairs or ramps, when no compliant path could be found.

Link copied to clipboard

Returns the optimal route based on user preferences and constraints. This path aims to be the fastest or most efficient route, depending on the routing configuration.

Functions

Link copied to clipboard
fun getCoreEngine(): Route
Link copied to clipboard
fun getCpp(): Route
Link copied to clipboard

Returns the name of the destination location of the route.

Link copied to clipboard
fun getEngine(): Route
Link copied to clipboard

Returns the routing error status associated with this route, if any.

Link copied to clipboard
fun getRoutePath(routePathType: RoutePathType): RoutePath?

Returns the corresponding RoutePath for the given RoutePathType, if available.

Link copied to clipboard

Returns the name of the starting location of the route.

Link copied to clipboard

Indicates whether any route path was successfully calculated.

Link copied to clipboard

Indicates whether the route is from the user's current location