GraphHopperRoutingService

class GraphHopperRoutingService @JvmOverloads constructor(map: URL, workingDirectory: File, defaultOptions: GraphHopperOptions) : RoutingService<GeoPosition, GraphHopperOptions>

RoutingService implementation based on GraphHopper.

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

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

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
open fun route(from: GeoPosition, to: GeoPosition): Route<GeoPosition>

Computes a Route a P another.

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.

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

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

Properties

Link copied to clipboard
open override val defaultOptions: GraphHopperOptions

The default set of options.