Comments (7)
Agreed, I think that we should broaden the umbrella of things that can be updated. IIRC, in the initial drafts I don't think that I even included PUT
methods, because I figured that the Stop management could be handled outside of the spec, and the spec would only handle reading of Stops. I think that by expanding the properties that can be updated via a PUT
, we can better support provider-managed Stops.
from mobility-data-specification.
So to wrap up, these items should now be allowed to be changed via PUT within Stops:
- last_updated
- num_vehicles_available
- num_vehicles_disabled
- rental_methods
- num_places_available
- num_places_disabled
- devices
from mobility-data-specification.
The original intent was for the regulating body to collect and publish that data through whatever mechanisms, and publish it read-only via the Stops endpoint, but if it's a Provider-maintained and -monitored Stop, then yeah, those fields should be mutable. More likely scenario is Provider-maintained Stops will use the Provider API.
from mobility-data-specification.
I agree it seems like a lot of these fields should be allowed to be updated via Put for stops.
It looks like a lot of this Stops work was done by you @thekaveman along with @marie-x and @avatarneil about 3-4 years ago, around the time I was starting. I don't recall the intention around this for Stops, do any of you have context and thoughts?
from mobility-data-specification.
Yeah I'm not super happy with having a single object for Stop that is mutated frequently (y'all know me, I'm stuck on immutable data whenever possible to make Policy measurements maximally reproducible) - in my perfect world, there'd be a separation between immutable Stops (e.g. the address and lat/lon) and mutable Stop Status. But we're not applying Policy to Stops (yet), so I think PUT should be allowed to update any Stop field where it makes sense to do so (e.g. num_places_available
but NOT stop_id
).
from mobility-data-specification.
OK check out the difference in OpenAPI and LMK if this looks good:
POST
: https://openmobilityfnd.stoplight.io/docs/mds-openapi/b3ea061e37756-stops#request-bodyPUT
: https://openmobilityfnd.stoplight.io/docs/mds-openapi/362ec313b670d-stops#request-bodyGET
: https://openmobilityfnd.stoplight.io/docs/mds-openapi/bd99c2440acf4-stops#response-body
from mobility-data-specification.
Looks correct! Updated with commits here and here.
from mobility-data-specification.
Related Issues (20)
- What vehicles are included in the MDS 2.0 /vehicles endpoint? HOT 4
- Reports endpoint - description of START_DATE HOT 4
- Add mode in trips and vehicles objects HOT 6
- Data structure with sub-objects for mode-specific attributes complexifies the data ingestion HOT 1
- Adding a field in trip objects to cover cancelled trips easier HOT 2
- Add Provider ID: Nextbike HOT 2
- Error and bulk responses HOT 5
- Add the publication_time field in the telemetry object
- Supporting Advanced Air Mobility (AAM) HOT 1
- Add Provider ID: Starship Technologies HOT 3
- Add operations start and end dates to VEHICLES endpoint HOT 5
- Simplify /vehicles/status HOT 1
- Define conditions for "conditionally required" fields
- Clearer support for AV taxis (Robotaxis) and stop events HOT 2
- Real-time improvements for MDS Policy
- Add Provider ID: Flamingo HOT 2
- Policy API - Rule unit of distance travelled for maintenance use cases
- Add Provider ID: 3km HOT 3
- Clarify that Policy API can require Authorization to access the published material
- Include `trip_stop` Event in Trip ID Requirements Documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobility-data-specification.