| Package | Description |
|---|---|
| com.graphhopper | |
| com.graphhopper.util |
| Modifier and Type | Method and Description |
|---|---|
GraphHopper |
GraphHopper.addAlgorithmFactoryDecorator(RoutingAlgorithmFactoryDecorator algoFactoryDecorator) |
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(CmdArgs args)
Reads configuration from a CmdArgs object.
|
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.setCHEnable(boolean enable)
Deprecated.
use
setCHEnabled(boolean) instead |
GraphHopper |
GraphHopper.setCHEnabled(boolean enable)
Enables or disables contraction hierarchies (CH).
|
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.setEnableInstructions(boolean b)
This method specifies if the import should include way names to be able to return
instructions for a route.
|
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,
int minOneWayNetworkSize) |
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.setPreferredLanguage(String preferredLanguage)
This method specifies the preferred language for way names during import.
|
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.setTraversalMode(TraversalMode traversalMode)
Sets the default traversal mode used for the algorithms and preparation.
|
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 |
EngineWarmUp.warmUp(GraphHopper graphHopper,
int iterations)
Do the 'warm up' for the specified GraphHopper instance.
|
Copyright © 2012–2018. All rights reserved.