Interface DistanceAndRoute
- All Known Implementing Classes:
DefaultDistanceAndRoute
public interface DistanceAndRoute
Wrapps a route and distance information between two points on the map.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleget distance in straight line.doubleGet road distancegetRoute()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 Details
-
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
-