RoutingTraceDependantSpeed

This AbstractTraceDependantSpeed strategy computes the remaining distance by relying on maps data for the selected RoutingServiceOptions.

Parameters

<T>

Concentration type

Constructors

Link copied to clipboard
constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: NodeReaction<T>, options: O)
Builds a new strategy estimating distances along routes computed with the given options.

Properties

Link copied to clipboard
protected open var trace: GPSTrace

Functions

Link copied to clipboard
open fun cloneIfNeeded(@Nonnull destination: Node<T>, @Nonnull reaction: NodeReaction<T>): RoutingTraceDependantSpeed<T, O, S>
Returns a clone for destination and reaction when the strategy is stateful.
Link copied to clipboard
Computes the movement length toward target.
abstract fun getNodeMovementLength(target: P): Double

Computes the movement length toward target.