Friday, October 27, 2017

Converting GTFS data into an igraph for network analysis in R

It is becoming ever more common for local transport authorities to publish their data on public transport networks in GTFS format. Two of the advantages of so many agencies using a standardized data format is that it makes it easier for us (1) to apply the same research methods to different cities and do comparative studies, and (2) to share our scripts, get feedback and learn from others. 

While working on my PhD on transportation equity in Rio de Janeiro, I have written a script in R that converts GTFS data into an igraph so I can run some network analysis. I shared this script on GitHub yesterday and it got the attention of a few people on Twitter, so I thought some of you might be interested as well. Get in touch if you would like to share any feedback or do some collaboration. :)


4 comments:

Unknown said...

so usufuel thank you

jesper said...

very interesting thx for sharing, I'm gonna try it for danish public transportation. Currently the distance matrices grow too large to apply your function as is. But very useful indeed.

Sophia Lucas said...

How I Got My Ex Husband Back. Am so excited, All Thanks goes to Dr Prince i was married to my husband, and we were living fine and happy. it come to an extend that my husband that use to love and care for me, doesn't have my time again, until i fined at that he was having an affair with another woman, I tried to stop him all my effort was in-vain suddenly he divorce me and went for the woman. he live me with two of our kids, I cried all day, I was in pains, sorrow and looking for help. I read a comment on how Dr Prince helped a lady to brought her husband back, after 2yrs , He helped people with his Magic spell love and reuniting spell. so I decided to contact him and explain my problems to him, he did a love spell that made my husband to come back to me and never think of the woman. this man is God sent to restore heart break and reunite relationship. may the lord be your strength and continue to use you to save people relationship and any problems contact him for help on princemagicspell@yahoo.com You can also contact him through his WhatsApp +19492293867. Contact him now for love spell to bring back your ex lover he is the best spell caster and he is the best solution to all relationship problems…

Nitish Kumar said...
This comment has been removed by a blog administrator.