Interface DistanceAndRoute
-
- All Known Implementing Classes:
DefaultDistanceAndRoute
public interface DistanceAndRouteWrapps a route and distance information between two points on the map.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetEagleFliesDistance()get distance in straight line.doublegetRoadDistance()Get road distanceRoutegetRoute()Get the route representation, which holds the start and destination and also all the implementation dependant data necessary to display a route on a map
-
-
-
Method Detail
-
getRoute
Route getRoute()
Get the route representation, which holds the start and destination and also all the implementation dependant data necessary to display a route on a map- Returns:
Route
-
getRoadDistance
double getRoadDistance()
Get road distance- Returns:
- double
-
getEagleFliesDistance
double getEagleFliesDistance()
get distance in straight line.- Returns:
- double
-
-