use of org.opentripplanner.routing.edgetype.StreetBikeParkLink in project OpenTripPlanner by opentripplanner.
the class SimpleStreetSplitter method makeBikeParkEdges.
/**
* Make bike park edges
*/
private void makeBikeParkEdges(BikeParkVertex from, StreetVertex to) {
if (!destructiveSplitting) {
throw new RuntimeException("Bike park edges are created with non destructive splitting!");
}
for (StreetBikeParkLink sbpl : Iterables.filter(from.getOutgoing(), StreetBikeParkLink.class)) {
if (sbpl.getToVertex() == to)
return;
}
new StreetBikeParkLink(from, to);
new StreetBikeParkLink(to, from);
}
Aggregations