@Component
@ConditionalOnProperty(prefix="app.routing",
name="engine",
havingValue="air")
public class AirDistanceRouter
extends Object
implements Router, DistanceCalculator, Region
| Modifier and Type | Field and Description |
|---|---|
protected static double |
KILOMETERS_PER_DEGREE |
protected static long |
MILLIS_IN_ONE_HOUR |
protected static int |
TRAVEL_SPEED_KPH |
| Constructor and Description |
|---|
AirDistanceRouter() |
| 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.
|
protected static final int TRAVEL_SPEED_KPH
protected static final double KILOMETERS_PER_DEGREE
protected static final long MILLIS_IN_ONE_HOUR
public long travelTimeMillis(Coordinates from, Coordinates to)
DistanceCalculatortravelTimeMillis in interface DistanceCalculatorfrom - originto - destinationpublic List<Coordinates> getPath(Coordinates from, Coordinates to)
Routerpublic BoundingBox getBounds()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.