Interface DistanceAndRoute
-
- All Known Implementing Classes:
DefaultDistanceAndRoute
public interface DistanceAndRoute
Wrapps a route and distance information between two points on the map.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getEagleFliesDistance()
get distance in straight line.double
getRoadDistance()
Get road distanceRoute
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
-
-
-
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
-
-