Article view

GTFS Segments: A Fast and Efficient Library to Generate Bus Stop Spacings

By Saipraneeth Devunuri, Lewis Lehe

Article information

Publication
Published 19 March 2024
Institutions at publication
University of Illinois Urbana-Champaign
8 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

The GTFS Segments (gtfs-segments) library is an open-source Python toolkit for computing, visualizing and analyzing bus stop spacings: the distance a transit bus travels between stops. The library reads General Transit Feed Specification (GTFS) data, snaps bus stops to points along routes, divides routes into segments (the pieces of routes between two stops), and then produces a GeoDataFrame containing information about each segment. The library also features several functions that act on this GeoDataFrame. It can produce summary statistics of the spacings for a given network, using various weighting schemes (i.e., weighting by frequency of service), as well as histograms of spacings that display their full distribution. In addition to network-level statistics, the package can also compute statistics for each route, such as its length, headway, speed, and average stop spacing. It can draw maps of networks, routes, or segments over a basemap-which allows the user to manually validate data. The segments DataFrame can be exported to .csv and .geojsonfile formats. The package can fetch the most up-to-date GTFS data from Mobility Data (MobilityData, 2023) repositories for user convenience.

Citations per year

Citations per year
YearCitations
2024 3
2025 3
2026 2

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 8 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
United States2