Search in sources :

Example 1 with FootFlagEncoder

use of com.graphhopper.routing.util.FootFlagEncoder in project graphhopper by graphhopper.

the class AbstractEdgeElevationInterpolatorTest method setUp.

@SuppressWarnings("resource")
@Before
public void setUp() {
    dataFlagEncoder = new DataFlagEncoder();
    graph = new GraphHopperStorage(new RAMDirectory(), new EncodingManager(Arrays.asList(dataFlagEncoder, new FootFlagEncoder()), 8), true, new GraphExtension.NoOpExtension()).create(100);
    edgeElevationInterpolator = createEdgeElevationInterpolator();
    interpolatableWay = createInterpolatableWay();
    normalWay = new ReaderWay(0);
    normalWay.setTag("highway", "primary");
}
Also used : DataFlagEncoder(com.graphhopper.routing.util.DataFlagEncoder) EncodingManager(com.graphhopper.routing.util.EncodingManager) ReaderWay(com.graphhopper.reader.ReaderWay) FootFlagEncoder(com.graphhopper.routing.util.FootFlagEncoder) RAMDirectory(com.graphhopper.storage.RAMDirectory) GraphHopperStorage(com.graphhopper.storage.GraphHopperStorage) GraphExtension(com.graphhopper.storage.GraphExtension) Before(org.junit.Before)

Aggregations

ReaderWay (com.graphhopper.reader.ReaderWay)1 DataFlagEncoder (com.graphhopper.routing.util.DataFlagEncoder)1 EncodingManager (com.graphhopper.routing.util.EncodingManager)1 FootFlagEncoder (com.graphhopper.routing.util.FootFlagEncoder)1 GraphExtension (com.graphhopper.storage.GraphExtension)1 GraphHopperStorage (com.graphhopper.storage.GraphHopperStorage)1 RAMDirectory (com.graphhopper.storage.RAMDirectory)1 Before (org.junit.Before)1