Package com.graphhopper.util
Class CustomModel
java.lang.Object
com.graphhopper.util.CustomModel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAreas(JsonFeatureCollection externalAreas) addToSpeed(Statement st) getAreas()static Map<String,JsonFeature> getSpeed()internal()This method is for internal usage only! Parsing a CustomModel is expensive and so we cache the result, which is especially important for fast landmark queries (hybrid mode).booleanstatic CustomModelmerge(CustomModel baseModel, CustomModel queryModel) A new CustomModel is created from the baseModel merged with the specified queryModel.setAreas(JsonFeatureCollection areas) setDistanceInfluence(Double distanceFactor) setHeadingPenalty(double headingPenalty) toString()
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
CustomModel
public CustomModel() -
CustomModel
-
-
Method Details
-
getAreasAsMap
-
addAreas
-
internal
This method is for internal usage only! Parsing a CustomModel is expensive and so we cache the result, which is especially important for fast landmark queries (hybrid mode). Now this method ensures that all server-side custom models are cached in a special internal cache which does not remove seldom accessed entries. -
isInternal
public boolean isInternal() -
getSpeed
-
addToSpeed
-
getPriority
-
addToPriority
-
setAreas
-
getAreas
-
setDistanceInfluence
-
getDistanceInfluence
-
setHeadingPenalty
-
getHeadingPenalty
-
toString
-
merge
A new CustomModel is created from the baseModel merged with the specified queryModel. Returns the baseModel if queryModel is null.
-