Class SinglePointTour

java.lang.Object
com.graphhopper.routing.util.tour.TourStrategy
com.graphhopper.routing.util.tour.SinglePointTour

public class SinglePointTour extends TourStrategy
Generate only a single points
Author:
Robin Boldt
  • Constructor Details

    • SinglePointTour

      public SinglePointTour(Random random, double distanceInMeter)
  • Method Details

    • getNumberOfGeneratedPoints

      public int getNumberOfGeneratedPoints()
      Description copied from class: TourStrategy
      Defines the number of points that are generated
      Specified by:
      getNumberOfGeneratedPoints in class TourStrategy
    • getDistanceForIteration

      public double getDistanceForIteration(int iteration)
      Description copied from class: TourStrategy
      Returns the distance in meter that is used for the generated point of a certain iteration
      Specified by:
      getDistanceForIteration in class TourStrategy
    • getHeadingForIteration

      public double getHeadingForIteration(int iteration)
      Description copied from class: TourStrategy
      Returns the north based heading between 0 and 360 for a certain iteration.
      Specified by:
      getHeadingForIteration in class TourStrategy