use of com.graphhopper.routing.util.BikeFlagEncoder in project graphhopper by graphhopper.
the class LMProfileSelectorTest method setup.
@BeforeEach
public void setup() {
FlagEncoder carEncoder = new CarFlagEncoder();
FlagEncoder bikeEncoder = new BikeFlagEncoder();
encodingManager = EncodingManager.create(carEncoder, bikeEncoder);
fastCar = new Profile("fast_car").setVehicle("car").setWeighting("fastest").setTurnCosts(false);
fastCarEdge = new Profile("fast_car_edge").setVehicle("car").setWeighting("fastest").setTurnCosts(true);
fastBike = new Profile("fast_bike").setVehicle("bike").setWeighting("fastest").setTurnCosts(false);
shortBikeEdge = new Profile("short_bike_edge").setVehicle("bike").setWeighting("shortest").setTurnCosts(true);
}
Aggregations