use of com.graphhopper.routing.util.DefaultFlagEncoderFactory in project graphhopper by graphhopper.
the class PrepareRoutingSubnetworksTest method createEncodingManager.
private static EncodingManager createEncodingManager(String flagEncodersStr) {
EncodingManager.Builder builder = new EncodingManager.Builder();
for (String encoderStr : flagEncodersStr.split(",")) {
encoderStr = encoderStr.trim();
FlagEncoder encoder = new DefaultFlagEncoderFactory().createFlagEncoder(encoderStr.split("\\|")[0], new PMap(encoderStr));
builder.add(encoder);
builder.add(Subnetwork.create(encoder.toString()));
}
return builder.build();
}
Aggregations