Search in sources :

Example 1 with StreetBikeParkLink

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);
}
Also used : StreetBikeParkLink(org.opentripplanner.routing.edgetype.StreetBikeParkLink)

Aggregations

StreetBikeParkLink (org.opentripplanner.routing.edgetype.StreetBikeParkLink)1