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);
}
});
}
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();
}
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();
}
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));
}
Aggregations