GraphHopperRoute

class GraphHopperRoute(from: GeoPosition, to: GeoPosition, response: <Error class: unknown class>) : TimedRoute<GeoPosition>

Models a route on a map, built upon the information provided by a query to GraphHopper.

Constructors

Link copied to clipboard
constructor(from: GeoPosition, to: GeoPosition, response: <Error class: unknown class>)

Properties

Link copied to clipboard
open override val points: <Error class: unknown class><GeoPosition>

Functions

Link copied to clipboard
open override fun getPoint(step: Int): GeoPosition
Link copied to clipboard
open override fun getTripTime(): Double
Link copied to clipboard
open operator override fun iterator(): MutableIterator<GeoPosition>
Link copied to clipboard
open override fun length(): Double
Link copied to clipboard
fun <R> Iterable<R>.randomElement(randomGenerator: <Error class: unknown class>): R

Returns a random element of the Iterable using the provided randomGenerator.

Link copied to clipboard
fun <R> Iterable<R>.shuffled(randomGenerator: <Error class: unknown class>): Iterable<R>

Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.

Link copied to clipboard
open override fun size(): Int
Link copied to clipboard