You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way the flex sandbox functionality is implemented now, much of it is kept separate from the main OTP model, and is not added to the index API. This means that many of the queries available for regular transit do not work with flex.
Looking through the Transmodel API, these are the queries that are not supported. Many of these would be similar for the REST API.
Leg->intermediateQuays (tripTimes missing) [Nice to have]
Leg->GeneralizedCost (not calculated for flex) [Nice to have]
Leg->fromEstimatedCall/toEstimatedCall (tripTimes missing) [Nice to have]
Leg->intermedidateEstimatedCalls (tripTimes missing) [Nice to have]
FlexibleStopPlace not part of StopPlaces query (or bbox/radius) [No]
FlexibleArea not part of Quays query (or bbox/radius) [No]
[] : In the list above the Entur priority is in angle brakets.
We should look at the feasibility of integrating flex trips more in the regular OTP model, and in turn the index API. If this proves to be difficult, another option is to have the RoutingService delegate queries that involve flex.
What would need to be done:
FlexTrip should inherit from Trip. There are no major differences between the classes that would prevent this. What causes problems is that the type of FlexTrip is selected after the StopTimes are mapped (which contains a reference to the Trip object that would not yet be instantiated).
If we are change StopPattern to use StopLocation instead of Stop, we need to consider the semanticHash method which uses lat/lon that is currently only available on regular Stops.
Timetable minRunningTimes and minDwellTimes not used. MinTime and maxTime used for StopTimes search. May not be needed. Otherwise TimeTable class should be no differnet for FlexTrip.
The TripTimes object reflects a list of the temporary StopTime object, only optimized for routing. This could be extended in the same way as StopTime. Only non-flex TripTimes would be mapped in the TransitLayerMapper.
A check in the TripPattern could determine whether it is Raptor routable and therefore will be mapped to the TransitLayer. Non-flex parts of flexible Trips would also be mapped.
The text was updated successfully, but these errors were encountered:
The way the flex sandbox functionality is implemented now, much of it is kept separate from the main OTP model, and is not added to the index API. This means that many of the queries available for regular transit do not work with flex.
Looking through the Transmodel API, these are the queries that are not supported. Many of these would be similar for the REST API.
[] : In the list above the Entur priority is in angle brakets.
We should look at the feasibility of integrating flex trips more in the regular OTP model, and in turn the index API. If this proves to be difficult, another option is to have the RoutingService delegate queries that involve flex.
What would need to be done:
The text was updated successfully, but these errors were encountered: