Class DefaultDistanceAndRoute
java.lang.Object
de.hybris.platform.storelocator.route.impl.DefaultDistanceAndRoute
- All Implemented Interfaces:
DistanceAndRoute
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDistanceAndRoute(double roadDistance, double eagleFliesDistance, Route route) DefaultDistanceAndRoute(Route route) -
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
-
Constructor Details
-
DefaultDistanceAndRoute
- Parameters:
roadDistance-eagleFliesDistance-route-
-
DefaultDistanceAndRoute
- Parameters:
route-
-
-
Method Details
-
getRoute
Description copied from interface:DistanceAndRouteGet the route representation, which holds the start and destination and also all the implementation dependant data necessary to display a route on a map- Specified by:
getRoutein interfaceDistanceAndRoute- Returns:
Route
-
getRoadDistance
public double getRoadDistance()Description copied from interface:DistanceAndRouteGet road distance- Specified by:
getRoadDistancein interfaceDistanceAndRoute- Returns:
- the roadDistance
-
getEagleFliesDistance
public double getEagleFliesDistance()Description copied from interface:DistanceAndRouteget distance in straight line.- Specified by:
getEagleFliesDistancein interfaceDistanceAndRoute- Returns:
- the eagleFliesDistance
-