RoutingService

A service capable to generate routes into an environment. Parametric on the Position type P and the supported RoutingServiceOptions.

Inheritors

Properties

Link copied to clipboard
abstract val defaultOptions: O

The default set of options.

Functions

Link copied to clipboard
open fun allowedPointClosestTo(position: P): P?

Retrieves (if available) the valid point closest to position, using the default options.

abstract fun allowedPointClosestTo(position: P, options: O): P?

Retrieves (if available) the valid point closest to position with the provided options. For instance, this method could be used to find the pedestrian-allowed road closer to a highway.

Link copied to clipboard
abstract fun parseOptions(options: String): O

Creates a set of options from the provided string.

Link copied to clipboard
open fun route(from: P, to: P): Route<P>

Computes a Route a P another.

abstract fun route(from: P, to: P, options: O): Route<P>
open fun route(from: P, to: P, options: String): Route<P>

Computes a Route a P another, honoring the provided set of navigation options.