public class CustomModel extends Object
| Constructor and Description |
|---|
CustomModel() |
CustomModel(CustomModel toCopy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAreas(JsonFeatureCollection externalAreas) |
CustomModel |
addToPriority(Statement st) |
CustomModel |
addToSpeed(Statement st) |
JsonFeatureCollection |
getAreas() |
static Map<String,JsonFeature> |
getAreasAsMap(JsonFeatureCollection areas) |
Double |
getDistanceInfluence() |
Double |
getHeadingPenalty() |
List<Statement> |
getPriority() |
List<Statement> |
getSpeed() |
CustomModel |
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).
|
boolean |
isInternal() |
static CustomModel |
merge(CustomModel baseModel,
CustomModel queryModel)
A new CustomModel is created from the baseModel merged with the specified queryModel.
|
CustomModel |
setAreas(JsonFeatureCollection areas) |
CustomModel |
setDistanceInfluence(Double distanceFactor) |
CustomModel |
setHeadingPenalty(double headingPenalty) |
String |
toString() |
public static final String KEY
public CustomModel()
public CustomModel(CustomModel toCopy)
public static Map<String,JsonFeature> getAreasAsMap(JsonFeatureCollection areas)
public void addAreas(JsonFeatureCollection externalAreas)
public CustomModel internal()
public boolean isInternal()
public CustomModel addToSpeed(Statement st)
public CustomModel addToPriority(Statement st)
public CustomModel setAreas(JsonFeatureCollection areas)
public JsonFeatureCollection getAreas()
public CustomModel setDistanceInfluence(Double distanceFactor)
public Double getDistanceInfluence()
public CustomModel setHeadingPenalty(double headingPenalty)
public Double getHeadingPenalty()
public static CustomModel merge(CustomModel baseModel, CustomModel queryModel)
Copyright © 2012–2023. All rights reserved.