Package org.opentripplanner.graph_builder

Examples of org.opentripplanner.graph_builder.GraphBuilderTask.run()


        OTPConfigurator configurator = new OTPConfigurator(params);
       
        // start graph builder, if asked for
        GraphBuilderTask graphBuilder = configurator.builderFromParameters();
        if (graphBuilder != null) {
            graphBuilder.run();
            // Inform configurator which graph is to be used for in-memory handoff.
            if (params.inMemory || params.preFlight) {
                graphBuilder.getGraph().index(new DefaultStreetVertexIndexFactory());
                configurator.makeGraphService(graphBuilder.getGraph());
            }
View Full Code Here


        params.build.add(tempDir);
        params.inMemory = true;
       
        GraphBuilderTask graphBuilder = new OTPConfigurator(params).builderFromParameters();
       
        graphBuilder.run();
       
        // remove the temporary directory
        // this doesn't work for nested directories, but the extract doesn't either,
        // so we'll crash long before we get here . . .
        for (File file : tempDir.listFiles()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.