Package com.graphhopper.routing
Class RouterConfig
java.lang.Object
com.graphhopper.routing.RouterConfig
This class contains various parameters that control the behavior of
Router.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoubleintintintlongbooleanbooleanbooleanvoidsetActiveLandmarkCount(int activeLandmarkCount) voidsetCalcPoints(boolean calcPoints) This methods enables gps point calculation.voidsetElevationWayPointMaxDistance(double elevationWayPointMaxDistance) voidsetInstructionsEnabled(boolean instructionsEnabled) voidsetMaxRoundTripRetries(int maxRoundTripRetries) voidsetMaxVisitedNodes(int maxVisitedNodes) This methods stops the algorithm from searching further if the resulting path would go over the specified node count, important if none-CH routing is used.voidsetNonChMaxWaypointDistance(int nonChMaxWaypointDistance) voidsetSimplifyResponse(boolean simplifyResponse) This method specifies if the returned path should be simplified or not, via Ramer-Douglas-Peucker or similar algorithm.voidsetTimeoutMillis(long timeoutMillis) Limits the runtime of routing requests to the given amount of milliseconds.
-
Constructor Details
-
RouterConfig
public RouterConfig()
-
-
Method Details
-
getMaxVisitedNodes
public int getMaxVisitedNodes() -
setMaxVisitedNodes
public void setMaxVisitedNodes(int maxVisitedNodes) This methods stops the algorithm from searching further if the resulting path would go over the specified node count, important if none-CH routing is used. -
getTimeoutMillis
public long getTimeoutMillis() -
setTimeoutMillis
public void setTimeoutMillis(long timeoutMillis) Limits the runtime of routing requests to the given amount of milliseconds. This only works up to a certain precision, but should be sufficient to cancel long-running requests in most cases. The exact implementation of the timeout depends on the routing algorithm. -
getMaxRoundTripRetries
public int getMaxRoundTripRetries() -
setMaxRoundTripRetries
public void setMaxRoundTripRetries(int maxRoundTripRetries) -
getNonChMaxWaypointDistance
public int getNonChMaxWaypointDistance() -
setNonChMaxWaypointDistance
public void setNonChMaxWaypointDistance(int nonChMaxWaypointDistance) -
isCalcPoints
public boolean isCalcPoints() -
setCalcPoints
public void setCalcPoints(boolean calcPoints) This methods enables gps point calculation. If disabled only distance will be calculated. -
isInstructionsEnabled
public boolean isInstructionsEnabled() -
setInstructionsEnabled
public void setInstructionsEnabled(boolean instructionsEnabled) -
isSimplifyResponse
public boolean isSimplifyResponse() -
setSimplifyResponse
public void setSimplifyResponse(boolean simplifyResponse) This method specifies if the returned path should be simplified or not, via Ramer-Douglas-Peucker or similar algorithm. -
getActiveLandmarkCount
public int getActiveLandmarkCount() -
setActiveLandmarkCount
public void setActiveLandmarkCount(int activeLandmarkCount) -
getElevationWayPointMaxDistance
public double getElevationWayPointMaxDistance() -
setElevationWayPointMaxDistance
public void setElevationWayPointMaxDistance(double elevationWayPointMaxDistance)
-