trynmaps/orion-gtfs

GTFS route util

Opened this issue · 1 comments

Given a vehicle's coordinates, we don't actually know how far it is along its route. The goal of this util is to take a GTFS, a vehicle's (or stop's) coordinates, and its route, and tell us how far it is (between 0.0 and 1.0).

Usages:

  • figuring out whether a vehicle has passed a stop
  • easily getting and comparing vehicle travel times along a route

See https://github.com/remix/partridge for parsing Muni's GTFS file - https://www.sfmta.com/reports/gtfs-transit-data

You can read more about GTFS here: https://developers.google.com/transit/gtfs/