Interface DistanceMap
-
- All Known Implementing Classes:
DistanceMapImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DistanceMap
Contains travel distances from a reference location to other locations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longdistanceTo(PlanningLocation location)Get distance from a reference location to the given location.
-
-
-
Method Detail
-
distanceTo
long distanceTo(PlanningLocation location)
Get distance from a reference location to the given location. The actual physical quantity (distance or time) and its units depend on the configuration of the routing engine and is not important for optimization.- Parameters:
location- location the distance of which will be returned- Returns:
- location's distance
-
-