GraphHopperRoutingService

class GraphHopperRoutingService @JvmOverloads constructor(map: URL, workingDirectory: File = defaultWorkingDirectory(map.openStream()), val defaultOptions: GraphHopperOptions = Companion.defaultOptions) : RoutingService<GeoPosition, GraphHopperOptions>

RoutingService implementation based on GraphHopper.

Constructors

Link copied to clipboard
constructor(map: URL, workingDirectory: File = defaultWorkingDirectory(map.openStream()), defaultOptions: GraphHopperOptions = Companion.defaultOptions)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The default set of options.

Functions

Link copied to clipboard

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

open override fun allowedPointClosestTo(position: GeoPosition, options: GraphHopperOptions): GeoPosition?

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
open override fun parseOptions(options: String): GraphHopperOptions

Creates a set of options from the provided string.

Link copied to clipboard

Computes a Route a P another.

open fun route(from: GeoPosition, to: GeoPosition, options: String): Route<GeoPosition>

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

open override fun route(from: GeoPosition, to: GeoPosition, options: GraphHopperOptions): Route<GeoPosition>

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