I have live GPS data coming in from the city's buses and given that I already have the routes in GTFS ( https://developers.google.com/transit/gtfs/reference/ ) I would like to convert this data to the GTFS format.

Is there a way to convert a bus's GPS coordinates taken at a certain time into a stop_sequence and delay, if there is any?

EDIT: I've found https://github.com/cbick/gps2gtfs but it requires some tweaking from what I understand, it's not a finished library.

closed as too broad by J.R, whyzar, Jochen Schwarze, Mark Ireland, xunilk Jan 26 at 0:59

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • It's a bit broad a question. Can you narrow it down to a particular software or development language? Otherwise I fear this question will get closed. – Mark Ireland Jan 25 at 15:43
  • Are you asking if you can produce a GTFS stop_times.txt file (and specifically write the stop_sequence attribute on the fly based on the buses current postion? – GBG Jan 25 at 17:23