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

GTFS API conventions #70

Closed
matikin9 opened this issue Oct 14, 2022 · 2 comments · Fixed by #69
Closed

GTFS API conventions #70

matikin9 opened this issue Oct 14, 2022 · 2 comments · Fixed by #69

Comments

@matikin9
Copy link
Contributor

matikin9 commented Oct 14, 2022

General Endpoint Naming Conventions

  • All GTFS endpoints require an agency_id.
  • If no specific value for a parameter is specified at the end, the endpoint will return all values for that parameter.

GTFS-rt Trip Updates

  • /{agency_id}/trip_updates/ - (future: return metadata?)
  • /{agency_id}/trip_updates/all - Return all trip_updates
  • /{agency_id}/trip_updates/{field_name}/{field_value}
    • field_name possible values:
      • trip_id
      • vehicle_id
    • field_value possible values:
      • list - Return all unique values for this field as a subset of the trip_updates data
      • {trip_id} - Return a singular trip_update for the trip_id provided. (future: multiple comma-separated trip_ids return trip_updates for each trip_id)

GTFS-rt Vehicle Positions

  • /{agency_id}/vehicle_positions/ - (future: return metadata?)
  • /{agency_id}/vehicle_positions/all - Return all vehicle_positions
  • /{agency_id}/vehicle_positions/{field_name}/{field_value}
    • field_name possible values:
      • vehicle_id
    • field_value possible values:
      • list - Return all unique values for this field as a subset of the vehicle_positions data
      • {vehicle_id} - Return a singular vehicle_position for the vehicle_id provided. (future: multiple comma-separated vehicle_ids return vehicle_positions for each vehicle_id)
@matikin9
Copy link
Contributor Author

matikin9 commented Oct 19, 2022

More fields we can add filters for:

  • Trip Updates

    • route_id
    • stop_id
  • Vehicle Postions

    • trip_id
    • trip_route_id
    • stop_id

@matikin9
Copy link
Contributor Author

Notes:

  • LACMTA_Rail's trip_updats data doesn't include vehicle_id

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

Successfully merging a pull request may close this issue.

1 participant