public class LMPreparationHandler extends Object
| Constructor and Description |
|---|
LMPreparationHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLandmarks() |
List<LMProfile> |
getLMProfiles() |
int |
getPreparationThreads() |
void |
init(GraphHopperConfig ghConfig) |
boolean |
isEnabled() |
List<LandmarkStorage> |
load(List<LMConfig> lmConfigs,
GraphHopperStorage ghStorage)
Loads the landmark data for all given configs if available.
|
List<PrepareLandmarks> |
prepare(List<LMConfig> lmConfigs,
GraphHopperStorage ghStorage,
LocationIndex locationIndex,
boolean closeEarly)
Prepares the landmark data for all given configs
|
LMPreparationHandler |
setLMProfiles(Collection<LMProfile> lmProfiles)
Enables the use of landmarks to reduce query times.
|
LMPreparationHandler |
setLMProfiles(LMProfile... lmProfiles) |
void |
setPreparationThreads(int preparationThreads)
This method changes the number of threads used for preparation on import.
|
public void init(GraphHopperConfig ghConfig)
public int getLandmarks()
public final boolean isEnabled()
public int getPreparationThreads()
public void setPreparationThreads(int preparationThreads)
public LMPreparationHandler setLMProfiles(LMProfile... lmProfiles)
public LMPreparationHandler setLMProfiles(Collection<LMProfile> lmProfiles)
public List<LandmarkStorage> load(List<LMConfig> lmConfigs, GraphHopperStorage ghStorage)
public List<PrepareLandmarks> prepare(List<LMConfig> lmConfigs, GraphHopperStorage ghStorage, LocationIndex locationIndex, boolean closeEarly)
Copyright © 2012–2022. All rights reserved.