Search in sources :

Example 1 with SimpleStreetSplitter

use of org.opentripplanner.graph_builder.linking.SimpleStreetSplitter in project OpenTripPlanner by opentripplanner.

the class BikeParkUpdater method setup.

@Override
public void setup() throws InterruptedException, ExecutionException {
    // Creation of network linker library will not modify the graph
    linker = new SimpleStreetSplitter(graph);
    // Adding a bike park station service needs a graph writer runnable
    updaterManager.executeBlocking(new GraphWriterRunnable() {

        @Override
        public void run(Graph graph) {
            bikeService = graph.getService(BikeRentalStationService.class, true);
        }
    });
}
Also used : GraphWriterRunnable(org.opentripplanner.updater.GraphWriterRunnable) Graph(org.opentripplanner.routing.graph.Graph) SimpleStreetSplitter(org.opentripplanner.graph_builder.linking.SimpleStreetSplitter)

Example 2 with SimpleStreetSplitter

use of org.opentripplanner.graph_builder.linking.SimpleStreetSplitter in project OpenTripPlanner by opentripplanner.

the class FakeGraph method link.

/**
 * link the stops in the graph
 */
public static void link(Graph g) {
    SimpleStreetSplitter linker = new SimpleStreetSplitter(g);
    linker.link();
}
Also used : SimpleStreetSplitter(org.opentripplanner.graph_builder.linking.SimpleStreetSplitter)

Example 3 with SimpleStreetSplitter

use of org.opentripplanner.graph_builder.linking.SimpleStreetSplitter in project OpenTripPlanner by opentripplanner.

the class StreetLinkerModule method buildGraph.

@Override
public void buildGraph(Graph graph, HashMap<Class<?>, Object> extra) {
    if (graph.hasStreets) {
        LOG.info("Linking transit stops, bike rental stations, bike parking areas, and park-and-rides to graph . . .");
        SimpleStreetSplitter linker = new SimpleStreetSplitter(graph);
        linker.link();
    }
    // Calculates convex hull of a graph which is shown in routerInfo API point
    graph.calculateConvexHull();
}
Also used : SimpleStreetSplitter(org.opentripplanner.graph_builder.linking.SimpleStreetSplitter)

Example 4 with SimpleStreetSplitter

use of org.opentripplanner.graph_builder.linking.SimpleStreetSplitter in project OpenTripPlanner by opentripplanner.

the class BikeRentalUpdater method setup.

@Override
public void setup() throws InterruptedException, ExecutionException {
    // Creation of network linker library will not modify the graph
    linker = new SimpleStreetSplitter(graph);
    // Adding a bike rental station service needs a graph writer runnable
    updaterManager.executeBlocking(graph -> service = graph.getService(BikeRentalStationService.class, true));
}
Also used : SimpleStreetSplitter(org.opentripplanner.graph_builder.linking.SimpleStreetSplitter)

Aggregations

SimpleStreetSplitter (org.opentripplanner.graph_builder.linking.SimpleStreetSplitter)4 Graph (org.opentripplanner.routing.graph.Graph)1 GraphWriterRunnable (org.opentripplanner.updater.GraphWriterRunnable)1