Class DefaultDistanceAndRoute
- java.lang.Object
-
- de.hybris.platform.storelocator.route.impl.DefaultDistanceAndRoute
-
- All Implemented Interfaces:
DistanceAndRoute
public class DefaultDistanceAndRoute extends java.lang.Object implements DistanceAndRoute
-
-
Constructor Summary
Constructors Constructor Description DefaultDistanceAndRoute(double roadDistance, double eagleFliesDistance, Route route)DefaultDistanceAndRoute(Route route)
-
Method Summary
All Methods Instance Methods Concrete 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
public Route 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
-
-