public class GraphBuilder extends Object
GraphHopperStorage
Constructor and Description |
---|
GraphBuilder(EncodingManager encodingManager) |
Modifier and Type | Method and Description |
---|---|
GraphHopperStorage |
build()
Default graph is a
GraphHopperStorage with an in memory directory and disabled storing on flush. |
CHGraph |
chGraphCreate(Weighting singleCHWeighting)
Creates a CHGraph
|
GraphHopperStorage |
create()
Default graph is a
GraphHopperStorage with an in memory directory and disabled storing on flush. |
boolean |
hasElevation() |
GraphHopperStorage |
load() |
GraphBuilder |
set3D(boolean withElevation) |
GraphBuilder |
setCHGraph(Weighting singleCHWeighting)
This method enables creating a CHGraph with the specified weighting.
|
GraphBuilder |
setEdgeBasedCH(boolean edgeBasedCH) |
GraphBuilder |
setExpectedSize(byte cap) |
GraphBuilder |
setLocation(String location) |
GraphBuilder |
setMmap(boolean mmap) |
GraphBuilder |
setStore(boolean store) |
GraphBuilder |
withTurnCosts(boolean turnCosts) |
public GraphBuilder(EncodingManager encodingManager)
public GraphBuilder setCHGraph(Weighting singleCHWeighting)
public GraphBuilder setLocation(String location)
public GraphBuilder setStore(boolean store)
public GraphBuilder setMmap(boolean mmap)
public GraphBuilder setExpectedSize(byte cap)
public GraphBuilder set3D(boolean withElevation)
public GraphBuilder withTurnCosts(boolean turnCosts)
public GraphBuilder setEdgeBasedCH(boolean edgeBasedCH)
public boolean hasElevation()
public GraphHopperStorage build()
GraphHopperStorage
with an in memory directory and disabled storing on flush.
Afterwards you'll need to call GraphHopperStorage.create(long)
to have a usable object. Better use
create()
directly.public GraphHopperStorage create()
GraphHopperStorage
with an in memory directory and disabled storing on flush.public GraphHopperStorage load()
IllegalStateException
- if not loadable.Copyright © 2012–2019. All rights reserved.