Class SinglePointTour
java.lang.Object
com.graphhopper.routing.util.tour.TourStrategy
com.graphhopper.routing.util.tour.SinglePointTour
Generate only a single points
- Author:
- Robin Boldt
-
Field Summary
Fields inherited from class com.graphhopper.routing.util.tour.TourStrategy
overallDistance, random
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getDistanceForIteration
(int iteration) Returns the distance in meter that is used for the generated point of a certain iterationdouble
getHeadingForIteration
(int iteration) Returns the north based heading between 0 and 360 for a certain iteration.int
Defines the number of points that are generatedMethods inherited from class com.graphhopper.routing.util.tour.TourStrategy
slightlyModifyDistance
-
Constructor Details
-
SinglePointTour
-
-
Method Details
-
getNumberOfGeneratedPoints
public int getNumberOfGeneratedPoints()Description copied from class:TourStrategy
Defines the number of points that are generated- Specified by:
getNumberOfGeneratedPoints
in classTourStrategy
-
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 classTourStrategy
-
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 classTourStrategy
-