use of com.graphhopper.application.util.GraphHopperServerTestConfiguration in project graphhopper by graphhopper.
the class I18nResourceTest method createConfig.
private static GraphHopperServerConfiguration createConfig() {
GraphHopperServerConfiguration config = new GraphHopperServerTestConfiguration();
config.getGraphHopperConfiguration().putObject("graph.flag_encoders", "car").putObject("datareader.file", "../core/files/andorra.osm.pbf").putObject("graph.location", DIR).setProfiles(Collections.singletonList(new Profile("car").setVehicle("car").setWeighting("fastest")));
return config;
}
use of com.graphhopper.application.util.GraphHopperServerTestConfiguration in project graphhopper by graphhopper.
the class NearestResourceTest method createConfig.
private static GraphHopperServerConfiguration createConfig() {
GraphHopperServerConfiguration config = new GraphHopperServerTestConfiguration();
config.getGraphHopperConfiguration().putObject("graph.flag_encoders", "car").putObject("datareader.file", "../core/files/andorra.osm.pbf").putObject("graph.location", dir).setProfiles(Collections.singletonList(new Profile("car").setVehicle("car").setWeighting("fastest")));
return config;
}
use of com.graphhopper.application.util.GraphHopperServerTestConfiguration in project graphhopper by graphhopper.
the class RouteResourceClientHCTest method createConfig.
private static GraphHopperServerConfiguration createConfig() {
GraphHopperServerConfiguration config = new GraphHopperServerTestConfiguration();
config.getGraphHopperConfiguration().putObject("graph.flag_encoders", "car,bike").putObject("prepare.min_network_size", 0).putObject("graph.elevation.provider", "srtm").putObject("graph.elevation.cache_dir", "../core/files/").putObject("datareader.file", "../core/files/andorra.osm.pbf").putObject("graph.encoded_values", "road_class,surface,road_environment,max_speed").putObject("graph.location", DIR).setProfiles(Arrays.asList(new Profile("my_car").setVehicle("car").setWeighting("fastest"), new Profile("my_bike").setVehicle("bike").setWeighting("fastest"))).setCHProfiles(Arrays.asList(new CHProfile("my_car"), new CHProfile("my_bike")));
return config;
}
use of com.graphhopper.application.util.GraphHopperServerTestConfiguration in project graphhopper by graphhopper.
the class NearestResourceWithEleTest method createConfig.
private static GraphHopperServerConfiguration createConfig() {
GraphHopperServerConfiguration config = new GraphHopperServerTestConfiguration();
config.getGraphHopperConfiguration().putObject("graph.elevation.provider", "srtm").putObject("graph.elevation.cache_dir", "../core/files/").putObject("prepare.min_network_size", 0).putObject("graph.flag_encoders", "car").putObject("datareader.file", "../core/files/monaco.osm.gz").putObject("graph.location", dir).setProfiles(Collections.singletonList(new Profile("car").setVehicle("car").setWeighting("fastest")));
return config;
}
use of com.graphhopper.application.util.GraphHopperServerTestConfiguration in project graphhopper by graphhopper.
the class RouteResourceTest method createConfig.
private static GraphHopperServerConfiguration createConfig() {
GraphHopperServerConfiguration config = new GraphHopperServerTestConfiguration();
config.getGraphHopperConfiguration().putObject("profiles_mapbox", mapboxResolver).putObject("graph.flag_encoders", "car").putObject("prepare.min_network_size", 0).putObject("datareader.file", "../core/files/andorra.osm.pbf").putObject("graph.encoded_values", "road_class,surface,road_environment,max_speed").putObject("graph.location", DIR).putObject(MAX_NON_CH_POINT_DISTANCE, 10e6).setProfiles(Collections.singletonList(new Profile("my_car").setVehicle("car").setWeighting("fastest"))).setCHProfiles(Collections.singletonList(new CHProfile("my_car")));
return config;
}
Aggregations