Skip to content
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

Add vehicle metadata in gtfs-rt to align with API #33

Open
ricardojorgerm opened this issue Dec 19, 2024 · 0 comments
Open

Add vehicle metadata in gtfs-rt to align with API #33

ricardojorgerm opened this issue Dec 19, 2024 · 0 comments

Comments

@ricardojorgerm
Copy link

ricardojorgerm commented Dec 19, 2024

vehicle: {
id: event.id,
},

Add two fields based on existing vehicle metadata available in the API

  • licensePlate: event.license_plate
  • wheelchairAccessible: event.wheelchair_accessible ? 'wheelchair_accessible' : 'no_value'

Also in

currentStatus: event.current_status,

Add:

  • occupancyStatus

as per event.occupancy_status, but the strings used are not entirely compatible with api, but should be event.occupancy_status for most reasonable values.

EMPTY
MANY_SEATS_AVAILABLE	The vehicle or carriage has a large number of seats available. The amount of free seats out of the total seats available to be considered large enough to fall into this category is determined at the discretion of the producer.
FEW_SEATS_AVAILABLE	The vehicle or carriage has a small number of seats available. The amount of free seats out of the total seats available to be considered small enough to fall into this category is determined at the discretion of the producer.
STANDING_ROOM_ONLY	The vehicle or carriage can currently accommodate only standing passengers.
CRUSHED_STANDING_ROOM_ONLY	The vehicle or carriage can currently accommodate only standing passengers and has limited space for them.
FULL	The vehicle is considered full by most measures, but may still be allowing passengers to board.
NOT_ACCEPTING_PASSENGERS	The vehicle or carriage is not accepting passengers. The vehicle or carriage usually accepts passengers for boarding.
NO_DATA_AVAILABLE	The vehicle or carriage doesn't have any occupancy data available at that time.
NOT_BOARDABLE	

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant