public class GraphBuilder extends Object
Constructor and Description |
---|
GraphBuilder(EncodingManager encodingManager) |
Modifier and Type | Method and Description |
---|---|
GraphHopperStorage |
build()
Default graph is a GraphStorage with an in memory directory and disabled storing on flush.
|
CHGraph |
chGraphCreate(Weighting singleCHWeighting)
Creates a CHGraph
|
GraphHopperStorage |
create()
Default graph is a GraphStorage 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 |
setExpectedSize(byte cap) |
GraphBuilder |
setLocation(String location) |
GraphBuilder |
setMmap(boolean mmap) |
GraphBuilder |
setStore(boolean store) |
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 boolean hasElevation()
public GraphHopperStorage build()
public GraphHopperStorage create()
public GraphHopperStorage load()
IllegalStateException
- if not loadable.Copyright © 2012–2018. All rights reserved.