@Component
@ConditionalOnProperty(prefix="app.routing",
name="engine",
havingValue="graphhopper",
matchIfMissing=true)
class GraphHopperRouter
extends Object
implements Router, DistanceCalculator, Region
| Constructor and Description |
|---|
GraphHopperRouter(com.graphhopper.reader.osm.GraphHopperOSM graphHopper) |
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
getBounds() |
List<Coordinates> |
getPath(Coordinates from,
Coordinates to)
Get path between two locations.
|
long |
travelTimeMillis(Coordinates from,
Coordinates to)
Calculate travel time in milliseconds.
|
@Autowired GraphHopperRouter(com.graphhopper.reader.osm.GraphHopperOSM graphHopper)
public List<Coordinates> getPath(Coordinates from, Coordinates to)
Routerpublic long travelTimeMillis(Coordinates from, Coordinates to)
DistanceCalculatortravelTimeMillis in interface DistanceCalculatorfrom - originto - destinationpublic BoundingBox getBounds()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.