Search in sources :

Example 1 with OSMBikeNetworkTagParser

use of com.graphhopper.routing.util.parsers.OSMBikeNetworkTagParser in project graphhopper by graphhopper.

the class CustomWeightingTest method setup.

@BeforeEach
public void setup() {
    carFE = new CarFlagEncoder(new PMap().putObject("speed_two_directions", true));
    encodingManager = new EncodingManager.Builder().add(carFE).add(new OSMTollParser()).add(new OSMHazmatParser()).add(new OSMBikeNetworkTagParser()).build();
    avSpeedEnc = carFE.getAverageSpeedEnc();
    accessEnc = carFE.getAccessEnc();
    maxSpeedEnc = encodingManager.getDecimalEncodedValue(MaxSpeed.KEY);
    roadClassEnc = encodingManager.getEnumEncodedValue(KEY, RoadClass.class);
    graph = new GraphBuilder(encodingManager).create();
}
Also used : OSMTollParser(com.graphhopper.routing.util.parsers.OSMTollParser) GraphBuilder(com.graphhopper.storage.GraphBuilder) RoadClass(com.graphhopper.routing.ev.RoadClass) OSMHazmatParser(com.graphhopper.routing.util.parsers.OSMHazmatParser) GraphBuilder(com.graphhopper.storage.GraphBuilder) OSMBikeNetworkTagParser(com.graphhopper.routing.util.parsers.OSMBikeNetworkTagParser) CarFlagEncoder(com.graphhopper.routing.util.CarFlagEncoder) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

RoadClass (com.graphhopper.routing.ev.RoadClass)1 CarFlagEncoder (com.graphhopper.routing.util.CarFlagEncoder)1 OSMBikeNetworkTagParser (com.graphhopper.routing.util.parsers.OSMBikeNetworkTagParser)1 OSMHazmatParser (com.graphhopper.routing.util.parsers.OSMHazmatParser)1 OSMTollParser (com.graphhopper.routing.util.parsers.OSMTollParser)1 GraphBuilder (com.graphhopper.storage.GraphBuilder)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1