-
Notifications
You must be signed in to change notification settings - Fork 1
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
Nav 131 extend query config for raptor #100
Conversation
…onService interface.
…m to reduce code duplication.
…uting controller.
…and gtfs defaultroutetype.
… stop time array with specific query settings.
…ys for a given date.
@munterfi: PR is finished for review and potential merger. Only thing one could still consider with a slight potential for adding too much complexity is considering the accessibility of stops in the routing process as well. This would require reworking the raptor builder and router a bit so that stops would also have a flag for accessibility. |
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.
Thanks @clukas1, nice work!
The overall concept looks solid and is close to being ready for merge. I have a few minor concerns that I'd like to discuss:
RoutingInfo
vs.ScheduleInfo
: Not consistent where this should live (ScheduleInfomrationService
vs.ConnectionRoutingService
) between the layersservice
andapp
.- Why is there and option to have no travel modes? Do you know sources other than GTFS that are not providing this? In order to be generic we could keep it. But in our case this will always be
supportsTravelModes=true
. - Configuration specific raptors and trip masks: Could you profile and benchmark to see how this is going to impact our memory footprint and performance?
src/main/java/ch/naviqore/service/gtfs/raptor/convert/GtfsTripMaskProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/naviqore/service/gtfs/raptor/convert/GtfsTripMaskProvider.java
Outdated
Show resolved
Hide resolved
- Rename endpoint for RoutingInfo from "/routing/" to "/routing", so it appears on top in the Swagger UI.
…name routerInfo to scheduleInfo.
…aptor' into NAV-131-Extend-QueryConfig-for-Raptor # Conflicts: # src/main/java/ch/naviqore/app/controller/RoutingController.java # src/main/java/ch/naviqore/app/dto/ScheduleInfo.java
…d to queryconfig class.
… router controller.
…rce coordinates are identical.
…d target coordinates.
…nd BikeInfo to Trip DTO.
@munterfi added small issues NAV-141 (add check for same coordinates in routing controller) and NAV-148 - add accessibility information and bikes allowed to trip dto and route transportmode enum to route dto. |
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.
Thanks @clukas1, looks good to merge!
@munterfi this is part one of my query config issue. I thought I'll initiate the review process early to unlock the service for further extension (less merge conflicts).
So far I've extended everything on the app / spring endpoint side to handle extra query args as I would expect. Down to creating the service QueryConfig object. In a separate branch, I will use this QueryConfig object to build a raptor query config object and mask my stop times accordingly + tests.
A further issue I will tackle is creating multiple versions of my zürich trams gtfs schedule where I add accesibility/bike information for testing.