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();
}
Aggregations