GraphHopperRoute

class GraphHopperRoute(from: GeoPosition, to: GeoPosition, response: GHResponse) : 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: GHResponse)

Functions

Link copied to clipboard
open override fun getPoint(step: Int): GeoPosition
Link copied to clipboard
open override fun getPoints(): ImmutableList<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: RandomGenerator): R

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

Link copied to clipboard
fun <R> Iterable<R>.shuffled(randomGenerator: RandomGenerator): 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
open override fun stream(): Stream<GeoPosition?>