Dive deeper into gtfs_functions Python package

In this article, we will see how to get line frequencies from a GTFS using the Python package gtfs_functions. You can find the repository and official documentation on GitHub.

If you are looking for an extensive explanation of the package, I recommend you first read this introduction. Here, we are going to directly dive into the specific use case of getting stop frequencies in a map.

Package installation and GTFS parsing

To install the package and parse the GTFS run the code below. For the article, I downloaded the GTFS from SFMTA (San Francisco, CA).

The function lines_freq takes 5 arguments:

  • stop_times calculated in…


Dive deeper into gtfs_functions Python package

In this article, we will see how to get bus segment frequencies from a GTFS using the Python package gtfs_functions. You can find the repository and official documentation on GitHub.

If you are looking for an extensive explanation of the package, I recommend you first read this introduction. Here, we are going to directly dive into the specific use case of getting stop frequencies in a map.

Package installation and GTFS parsing

To install the package and parse the GTFS run the code below. For the article, I downloaded the GTFS from SFMTA (San Francisco, CA).

Sometimes, looking at the variables at the stop…


Dive deeper into gtfs_functions Python package

In this article, we will see how to get scheduled mean speed by bus segment from a GTFS using the Python package gtfs_functions. You can find the repository and official documentation on GitHub.

If you are looking for an extensive explanation of the package, I recommend you first read this introduction. Here, we are going to directly dive into the specific use case of getting stop frequencies in a map.

Package installation and GTFS parsing

To install the package and parse the GTFS run the code below. For the article, I downloaded the GTFS from SFMTA (San Francisco, CA).

Sometimes, looking at the variables…


Dive deeper into gtfs_functions Python package

In this article, we will see how to get stop frequencies from a GTFS using the Python package gtfs_functions. You can find the repository and official documentation on GitHub.

If you are looking for an extensive explanation of the package, I recommend you first read this introduction. Here, we are going to directly dive into the specific use case of getting stop frequencies in a map.

Package installation and GTFS parsing

To install the package and parse the GTFS run the code below. For the article, I downloaded the GTFS from SFMTA (San Francisco, CA).

With the GTFS parsed, we can start playing with…


An introduction to gtfs_functions

What this article is about

This article is meant to be a light introduction to the Python package gtfs_functions. This package was specifically designed to speed up some frequent GTFS spatial analyses I do at Remix and it should be easily accessible for anyone with a little Python knowledge.

If you feel that this content is not thorough enough on the explanation for each function, I recommend you visit the article that dives in the specific function you are interested in.

Also, note that the outputs of these functions are GeoDataFrames, mostly intended to be visualized on maps but they are also susceptible to be…


Visualizing NYC Bike Data on interactive and animated maps with Folium plugins

When the science of where is not enough

When analyzing transit and mobility it is always a great help to draw things on a map. This helps us answer the question “ where are things happening?”

Nonetheless, many times the result of the analysis can change drastically if we don’t take the time into account. Maybe the most obvious example is when analyzing commuting patterns: if you analyze the whole day it looks like the people going to the city center is approximately the same that goes in the opposite direction. …


I have been working a lot with GTFS files in R lately and wanted to share some of the things I’ve learned so far.

A few weeks ago, one of my customers asked if we could color their bus lines depending on the number of trips per hour a line has. To do so, I first had to calculate that number.

In this article, I’ll explain how to get the number of trips for a given line from a GTFS using R. Then, I will show how we can export that information to Excel and make a chart with it.


As a CSM at Remix, I’m in touch with a lot of different transit agencies and have the opportunity to learn about their challenges. Even though all transit agencies have the same main goal, many times their challenges can be quite unique depending on their specific situation.

This is the main reason why, sometimes, one single platform (as great as it is) can’t meet every need each of the +300 customers have. It is in this kind of situations that a CSM has to come up with a workaround so the user can get the value he/she is looking for.

Santiago Toso

Sr. Data Analyst at Remix.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store