Class DefaultDistanceAndRoute

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getEagleFliesDistance()
      get distance in straight line.
      double getRoadDistance()
      Get road distance
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultDistanceAndRoute

        public DefaultDistanceAndRoute​(double roadDistance,
                                       double eagleFliesDistance,
                                       Route route)
        Parameters:
        roadDistance -
        eagleFliesDistance -
        route -
      • DefaultDistanceAndRoute

        public DefaultDistanceAndRoute​(Route route)
        Parameters:
        route -
    • Method Detail

      • getRoute

        public Route getRoute()
        Description copied from interface: DistanceAndRoute
        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
        Specified by:
        getRoute in interface DistanceAndRoute
        Returns:
        Route