Search in sources :

Example 6 with BikeFlagEncoder

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);
}
Also used : CarFlagEncoder(com.graphhopper.routing.util.CarFlagEncoder) BikeFlagEncoder(com.graphhopper.routing.util.BikeFlagEncoder) FlagEncoder(com.graphhopper.routing.util.FlagEncoder) BikeFlagEncoder(com.graphhopper.routing.util.BikeFlagEncoder) CarFlagEncoder(com.graphhopper.routing.util.CarFlagEncoder) CHProfile(com.graphhopper.config.CHProfile) Profile(com.graphhopper.config.Profile) LMProfile(com.graphhopper.config.LMProfile) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BikeFlagEncoder (com.graphhopper.routing.util.BikeFlagEncoder)6 CarFlagEncoder (com.graphhopper.routing.util.CarFlagEncoder)5 FlagEncoder (com.graphhopper.routing.util.FlagEncoder)5 Profile (com.graphhopper.config.Profile)3 BeforeEach (org.junit.jupiter.api.BeforeEach)3 CHProfile (com.graphhopper.config.CHProfile)2 LMProfile (com.graphhopper.config.LMProfile)2 EncodingManager (com.graphhopper.routing.util.EncodingManager)2 Test (org.junit.Test)2 GraphHopper (com.graphhopper.GraphHopper)1 File (java.io.File)1 Test (org.junit.jupiter.api.Test)1