Package | Description |
---|---|
com.graphhopper | |
com.graphhopper.routing.util.spatialrules | |
com.graphhopper.util |
Modifier and Type | Method and Description |
---|---|
GraphHopper |
GraphHopper.forDesktop()
Configures the underlying storage to be used on a Desktop computer or within another Java
application with enough RAM but no network latency.
|
GraphHopper |
GraphHopper.forMobile()
Configures the underlying storage to be used on a less powerful machine like Android or
Raspberry Pi with only few MB of RAM.
|
GraphHopper |
GraphHopper.forServer()
Configures the underlying storage and response to be used on a well equipped server.
|
GraphHopper |
GraphHopper.importOrLoad()
Imports provided data from disc and creates graph.
|
GraphHopper |
GraphHopper.init(GraphHopperConfig ghConfig)
Reads the configuration from a
GraphHopperConfig object which can be manually filled, or more typically
is read from `config.yml`. |
protected GraphHopper |
GraphHopper.loadGraph(GraphHopperStorage g)
For testing only
|
GraphHopper |
GraphHopper.setAllowWrites(boolean allowWrites)
Specifies if it is allowed for GraphHopper to write.
|
GraphHopper |
GraphHopper.setDataReaderFile(String dataReaderFileStr)
This file can be any file type supported by the DataReader.
|
GraphHopper |
GraphHopper.setElevation(boolean includeElevation)
Enable storing and fetching elevation data.
|
GraphHopper |
GraphHopper.setElevationProvider(ElevationProvider eleProvider) |
GraphHopper |
GraphHopper.setEnableCalcPoints(boolean b)
This methods enables gps point calculation.
|
GraphHopper |
GraphHopper.setEncodedValueFactory(EncodedValueFactory factory) |
GraphHopper |
GraphHopper.setEncodingManager(EncodingManager em)
Specify which vehicles can be read by this GraphHopper instance.
|
GraphHopper |
GraphHopper.setFlagEncoderFactory(FlagEncoderFactory factory) |
GraphHopper |
GraphHopper.setGraphHopperLocation(String ghLocation)
Sets the graphhopper folder.
|
GraphHopper |
GraphHopper.setInMemory()
This method call results in an in-memory graph.
|
GraphHopper |
GraphHopper.setMemoryMapped()
Enable memory mapped configuration if not enough memory is available on the target platform.
|
GraphHopper |
GraphHopper.setMinNetworkSize(int minNetworkSize) |
GraphHopper |
GraphHopper.setPathDetailsBuilderFactory(PathDetailsBuilderFactory pathBuilderFactory) |
GraphHopper |
GraphHopper.setPreciseIndexResolution(int precision)
Precise location resolution index means also more space (disc/RAM) could be consumed and
probably slower query times, which would be e.g.
|
GraphHopper |
GraphHopper.setProfiles(List<Profile> profiles) |
GraphHopper |
GraphHopper.setProfiles(Profile... profiles)
Sets the routing profiles that can be used for CH/LM preparation.
|
GraphHopper |
GraphHopper.setSortGraph(boolean sortGraph)
Sorts the graph which requires more RAM while import.
|
GraphHopper |
GraphHopper.setStoreOnFlush(boolean storeOnFlush)
Only valid option for in-memory graph and if you e.g.
|
GraphHopper |
GraphHopper.setTagParserFactory(TagParserFactory factory) |
GraphHopper |
GraphHopper.setWayPointMaxDistance(double wayPointMaxDistance)
This parameter specifies how to reduce points via douglas peucker while OSM import.
|
Modifier and Type | Method and Description |
---|---|
static void |
SpatialRuleLookupHelper.buildAndInjectCountrySpatialRules(GraphHopper graphHopper,
org.locationtech.jts.geom.Envelope maxBounds,
List<JsonFeatureCollection> jsonFeatureCollections) |
Modifier and Type | Method and Description |
---|---|
static void |
EngineWarmUp.warmUp(GraphHopper graphHopper,
int iterations)
Do the 'warm up' for the specified GraphHopper instance.
|
Copyright © 2012–2020. All rights reserved.