Commit 971cdef3 authored by Sebastian Hörl's avatar Sebastian Hörl
Browse files

configurable network for long distance

parent fc03543a
......@@ -46,7 +46,7 @@ public class MakeLongDistanceScenario {
static public void main(String[] args) throws ConfigurationException, InterruptedException {
CommandLine cmd = new CommandLine.Builder(args) //
.requireOptions("config-path", "output-path") //
.allowOptions("threads", "batch-size", "osm-types", "population-path") //
.allowOptions("threads", "batch-size", "osm-types", "population-path", "network-path") //
.build();
Config config = ConfigUtils.loadConfig(cmd.getOptionStrict("config-path"));
......@@ -54,6 +54,10 @@ public class MakeLongDistanceScenario {
if (cmd.hasOption("population-path")) {
config.plans().setInputFile(cmd.getOptionStrict("population-path"));
}
if (cmd.hasOption("network-path")) {
config.network().setInputFile(cmd.getOptionStrict("network-path"));
}
Scenario scenario = ScenarioUtils.createScenario(config);
scenario.getPopulation().getFactory().getRouteFactories().setRouteFactory(DefaultEnrichedTransitRoute.class,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment