-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flex transit as a sandbox feature #3121
Conversation
@hannesj Let me know if you when you want me to review this. |
src/main/java/org/opentripplanner/routing/vertextype/StreetVertex.java
Outdated
Show resolved
Hide resolved
private final Map<Station, MultiModalStation> multiModalStationForStations = Maps.newHashMap(); | ||
private final HashGridSpatialIndex<TransitStopVertex> stopSpatialIndex = new HashGridSpatialIndex<>(); | ||
private final Map<ServiceDate, TIntSet> serviceCodesRunningForDate = new HashMap<>(); | ||
private FlexIndex flexIndex = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be final
src/main/java/org/opentripplanner/gtfs/mapping/GTFSToOtpTransitServiceMapper.java
Show resolved
Hide resolved
src/main/java/org/opentripplanner/gtfs/mapping/LocationGroupMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/core/TransferTable.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/flex/FlexLocationsToStreetEdgesMapper.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/flex/template/FlexAccessEgressTemplate.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/algorithm/RoutingWorker.java
Outdated
Show resolved
Hide resolved
.createPoint(v0.getCoordinate()); | ||
Envelope env = p.getEnvelopeInternal(); | ||
for (FlexStopLocation flexStopLocation : graph.index.getFlexIndex().locationIndex.query(env)) { | ||
if (edge.canTraverse(new TraverseModeSet(TraverseMode.CAR)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for WALK
public int distance; | ||
public int duration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to distanceMeters and durationSeconds
src/main/java/org/opentripplanner/transit/raptor/api/transit/RaptorTransfer.java
Outdated
Show resolved
Hide resolved
I think this can't be close, can't it? |
This pull request adds the possibility of using flexible transit for access and egress routes. Currently only unscheduled trips are included.
To be completed by pull request submitter:
closes #45
).To be completed by @opentripplanner/plc: