2

I aim to "translate" GTFS files (non realtime) into directed graphs. Is there any API / tool that can do that easily ? I would like to create a graph per route in my GTFS, and then store it into a file.

So far I made a few tests using Python and pygtfs, or R and gtfsr, but none seems to be able to make that conversion.

Arkeen
  • 554
  • 8
  • 20
  • Check out OpenTripPlanner: https://github.com/opentripplanner/OpenTripPlanner – Evan Siroky Apr 10 '19 at 05:31
  • No satisfying solution existing in python to my knowledge. I had to do the same thing in my job, I was using pygtfs at first till I found it too slow and jumpy (few public feeds acutally really respect the standart) and memory hungry, so I ended up parsing the feeds myself, and building a home made graph from it, was not too long. Code ain't open or I'd give it to you though, sorry. So if you go for python, and wanna deal with the large feeds (switzerland, paris, NY state ...), I'd advice you to dodge pygtfs. – m.raynal Apr 17 '19 at 14:37

1 Answers1

1

You can try peartree. Their websites says: "peartree is a library for converting GTFS feed schedules into a representative directed network graph."

Andrea Araldo
  • 1,332
  • 14
  • 20