Repository navigation
Add availableUntil to rental vehicles in the GTFS GraphQL API - #6643
optionsome merged 3 commits into
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6643 +/- ##
=============================================
+ Coverage 71.17% 71.25% +0.07%
- Complexity 18455 18464 +9
=============================================
Files 2027 2028 +1
Lines 76287 76272 -15
Branches 7804 7799 -5
=============================================
+ Hits 54298 54346 +48
+ Misses 19225 19170 -55
+ Partials 2764 2756 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7707256 to
0798a95
Compare
leonardehrenfried
left a comment
There was a problem hiding this comment.
Just a small request.
0798a95 to
fb580c0
Compare
| type RentalVehicle implements Node & PlaceInterface { | ||
| "If true, vehicle is currently available for renting." | ||
| allowPickupNow: Boolean | ||
| "The date and time when any rental of the vehicle must be completed." |
There was a problem hiding this comment.
This wording is from the GBFS specification, but for me it's a bit vague if this means that the vehicle should be rented or returned before this time. The spec elaborates it in more words. Perhaps we could just say "The vehicle should be returned before this deadline."?
There was a problem hiding this comment.
yes, I replaced the description with your suggestion.
fb580c0 to
9f4d334
Compare
Summary
This PR adds availability information to the rental vehicle model and GraphQL API by using the
available_untilfield of the vehicle_status.json in GBFS.Issue
#6547
The PR handles the first two steps in this commend: #6547 (comment)
This field can be used to better inform the user about the availability of the vehicle.
Also this field can later be used, to consider it the routing as described in the linked issue.
It does not consider the new more complex GBFS extension(vehicle_availability.json), linked in the issue, because the GBFS model does not exist in the library yet.
Unit tests
available_untilfield in the GraphQLIntegrationTest