-
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
SIRI-FM vehicle parking updates #5979
SIRI-FM vehicle parking updates #5979
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5979 +/- ##
=============================================
+ Coverage 69.73% 69.74% +0.01%
- Complexity 17292 17317 +25
=============================================
Files 1954 1960 +6
Lines 74163 74261 +98
Branches 7595 7603 +8
=============================================
+ Hits 51714 51791 +77
- Misses 19809 19830 +21
Partials 2640 2640 ☔ View full report in Codecov by Sentry. |
cc @rcavaliere @clezag. |
50b9f10
to
cc7d540
Compare
30dca85
to
b70dc74
Compare
.ofNullable(siri.getServiceDelivery()) | ||
.flatMap(sd -> sd.getFacilityMonitoringDeliveries().stream()) | ||
.flatMap(d -> d.getFacilityConditions().stream()) | ||
.filter(this::conformsToItalianProfile) |
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.
This check feels a bit ugly but I guess it's well-documented that this updater follows the italian profile and we can refactor the profile to be configurable when there is need for it.
...main/java/org/opentripplanner/updater/vehicle_parking/VehicleParkingAvailabilityUpdater.java
Outdated
Show resolved
Hide resolved
.../java/org/opentripplanner/updater/vehicle_parking/VehicleParkingAvailabilityUpdaterTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Joel Lappalainen <[email protected]>
Summary
Following up on #5946 this adds a vehicle parking updater that consumes SIRI-FM.
It introduces a new model for parking updates: rather than being able to add parking lots through a realtime updater, this only updates the availability.
We can discuss in the dev meetings, if these two update types should be handled in the same updater.
Unit tests
Added.
For the time being, this is a draft as I want to wait until #5946 has been merged.