GraphHopperRoutingService
class GraphHopperRoutingService @JvmOverloads constructor(map: URL, cacheDirectory: Path = DEFAULT_CACHE_DIRECTORY, val defaultOptions: GraphHopperOptions = Companion.defaultOptions) : RoutingService<GeoPosition, GraphHopperOptions> (source)
RoutingService implementation based on GraphHopper.
The routing graph of map is imported once and stored in a FileSystemDirectoryCache rooted in cacheDirectory, where later instances (also in other simulations) load it from.
Constructors
Link copied to clipboard
constructor(map: URL, cacheDirectory: Path = DEFAULT_CACHE_DIRECTORY, defaultOptions: GraphHopperOptions = Companion.defaultOptions)
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?
Link copied to clipboard
Creates a set of options from the provided string.
Link copied to clipboard
open override fun route(from: GeoPosition, to: GeoPosition, options: GraphHopperOptions): Route<GeoPosition>