v48, v50, l49, "Edge 49", 2.0, StreetTraversalPermission.ALL, false);
// Edges for legs 6, 7 and 8
LegSwitchingEdge e51 = new LegSwitchingEdge(
v50, v52);
StreetEdge e53p = new StreetEdge(v52, v54, l53, "Edge 53", 1.0,
StreetTraversalPermission.ALL, false);
PartialStreetEdge e53 = new PartialStreetEdge(e53p, v52, v54, l53, "Edge 53",
1.0, StreetTraversalPermission.ALL, false);
StreetBikeRentalLink e55 = new StreetBikeRentalLink(
v54, v56);
RentABikeOffEdge e57 = new RentABikeOffEdge(
v56, v58, Collections.singleton(""));
StreetBikeRentalLink e59 = new StreetBikeRentalLink(
v58, v60);
// Alert for testing GTFS-RT
AlertPatch alertPatch = new AlertPatch();
alertPatch.setTimePeriods(Collections.singletonList(new TimePeriod(0, Long.MAX_VALUE)));
alertPatch.setAlert(Alert.createSimpleAlerts(alertsExample));
// Edge initialization that can't be done using the constructor
e3.setElevationProfile(elevation3, false);
e17.add(firstTrip, secondTrip);
e39.setElevationProfile(elevation39, false);
e41.setElevationProfile(elevation41, false);
e41.setHasBogusName(true);
e49.setElevationProfile(elevation49, false);
e53.setElevationProfile(elevation53, false);
graph.streetNotesService.addStaticNote(e53p, Alert.createSimpleAlerts(alertsExample),
StreetNotesService.ALWAYS_MATCHER);
// Add an extra edge to the graph in order to generate stayOn = true for one walk step.
new StreetEdge(v40,
new IntersectionVertex(graph, "Extra vertex", 180, 88),
new LineString(new PackedCoordinateSequence.Double(
new double[]{180, 89, 180, 88}, 2), geometryFactory),
"Extra edge", 1.9, StreetTraversalPermission.NONE, true);