Class GraphHopperRoutingService
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.RoutingService
,java.io.Serializable
public final class GraphHopperRoutingService implements RoutingService<GeoPosition, GraphHopperOptions>
RoutingService implementation based on GraphHopper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
GraphHopperRoutingService.Companion
Default valujes for GraphHopper.
-
Field Summary
Fields Modifier and Type Field Description private final GraphHopperOptions
defaultOptions
public final static GraphHopperRoutingService.Companion
Companion
-
Constructor Summary
Constructors Constructor Description GraphHopperRoutingService(URL map, File workingDirectory, GraphHopperOptions defaultOptions)
GraphHopperRoutingService(URL map, File workingDirectory)
GraphHopperRoutingService(URL map)
-
Method Summary
Modifier and Type Method Description GraphHopperOptions
getDefaultOptions()
The default set of options. GeoPosition
allowedPointClosestTo(GeoPosition position, GraphHopperOptions options)
Retrieves (if available) the valid point closest to position with the provided options. Route<GeoPosition>
route(GeoPosition from, GeoPosition to, GraphHopperOptions options)
Computes a Route a P another, honoring the provided set of navigation options. GraphHopperOptions
parseOptions(String options)
Creates a set of options from the provided string. -
-
Method Detail
-
getDefaultOptions
GraphHopperOptions getDefaultOptions()
The default set of options.
-
allowedPointClosestTo
GeoPosition allowedPointClosestTo(GeoPosition position, GraphHopperOptions options)
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.
-
route
Route<GeoPosition> route(GeoPosition from, GeoPosition to, GraphHopperOptions options)
-
parseOptions
GraphHopperOptions parseOptions(String options)
Creates a set of options from the provided string.
-
-
-
-