Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gavincabbage/gtfs-timeseries

Playing with GTFS-realtime data in time series databases
https://github.com/gavincabbage/gtfs-timeseries

gtfs gtfs-realtime influxdb telegraf time-series timescaledb

Last synced: about 1 month ago
JSON representation

Playing with GTFS-realtime data in time series databases

Awesome Lists containing this project

README

        

# gtfs-timeseries

Playing with [GTFS-realtime](https://developers.google.com/transit/gtfs-realtime) data in timeseries database. Uploading and querying data to [InfluxDB Cloud](https://cloud2.influxdata.com/signup) using the new [IOx storage engine](https://github.com/influxdata/influxdb_iox) and TimeseriesDB Cloud.

## Contents

- `telegraf/`
- A Telegraf `execd` plugin written in Go that polls GTFS-realtime data
- `export/`
- Python code to query GTFS-realtime data in InfluxDB IOx via FlightSQL and TimescaleDB via PostgreSQL and convert it to GeoJSON
- `config.toml`
- Telegraf configuration using the GTFS-realtime plugin in this repo to write to InfluxDB and TimescaleDB
- `keplergl.ipynb`
- Juypter Notebook using KeplerGL to visualize data exported with the Python code in this repo

## Resource

Links I used while putting this together:
- [Visualizing Bus Trajectories in Denver](https://towardsdatascience.com/visualizing-bus-trajectories-in-denver-85ff02f3a746)
- [Visualizing Istanbul Bus Traffic With Python and KeplerGL](https://medium.com/swlh/visualizing-istanbul-bus-traffic-with-python-and-keplergl-a84895788825)
- [Using KeplerGL in JupyterLab](https://docs.kepler.gl/docs/keplergl-jupyter#keplergl)