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 support for vehicle occupancy #215

Closed
barbeau opened this issue Feb 24, 2015 · 0 comments
Closed

Add support for vehicle occupancy #215

barbeau opened this issue Feb 24, 2015 · 0 comments
Milestone

Comments

@barbeau
Copy link
Member

barbeau commented Feb 24, 2015

OccupancyStatus is now an "experimental/proposed" GTFS-realtime field, as discussed on the gtfs-realtime list.

Here’s an explanation of the enumeration values:
https://groups.google.com/forum/#!msg/gtfs-realtime/_HtNTGp5LxM/0mvvEW1WuMMJ

...and the same text inline, for convenience:

 enum OccupancyStatus {
    // The vehicle is considered empty by most measures, and has few or no
    // passengers onboard, but is still accepting passengers.
    EMPTY = 0;

    // The vehicle has a relatively large percentage of seats available.
    // What percentage of free seats out of the total seats available is to be
    // considered large enough to fall into this category is determined at the
    // discretion of the producer.
    MANY_SEATS_AVAILABLE = 1;

    // The vehicle has a relatively small percentage of seats available.
    // What percentage of free seats out of the total seats available is to be
    // considered small enough to fall into this category is determined at the
    // discretion of the feed producer.
    FEW_SEATS_AVAILABLE = 2;

    // The vehicle can currently accommodate only standing passengers.
    STANDING_ROOM_ONLY = 3;

    // The vehicle can currently accommodate only standing passengers
    // and has limited space for them.
    CRUSHED_STANDING_ROOM_ONLY = 4;

    // The vehicle is considered full by most measures, but may still be
    // allowing passengers to board.
    FULL = 5;

    // The vehicle is not accepting additional passengers.
    NOT_ACCEPTING_PASSENGERS = 6;
  }

We should consume this data from the OBA REST API (when it is implemented) and expose it in the app. See OneBusAway/onebusaway-application-modules#121 for progress in providing this data via the OBA REST API.

Companion issue on iOS:
OneBusAway/onebusaway-iphone#361

Please note that not all agencies have the hardware to support real-time occupancy.

We can also support historical occupancy using a very similar format if an agency isn't able to supply real-time occupancy data, but is able to supply historical data via GTFS (exact design TBD).

@barbeau barbeau added this to the Future milestone Sep 24, 2015
@barbeau barbeau changed the title Add support for real-time OccupancyStatus Add support for OccupancyStatus Dec 8, 2018
@barbeau barbeau modified the milestones: Future, v2.3.x Dec 8, 2018
@barbeau barbeau changed the title Add support for OccupancyStatus Add support for vehicle occupancy Dec 8, 2018
@barbeau barbeau closed this as completed in 885ae37 Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant