dhersz / gtfs2gps

Convert GTFS data into a data.table with GPS-like records in R

Home Page:https://ipeagit.github.io/gtfs2gps/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gtfs2gps logo

CRAN/METACRAN Version.CRAN/METACRAN Total downloads R-CMD-check Codecov test coverage DOI

Converting public transport data from GTFS format to GPS-like records

gtfs2gps is an R package that converts public transportation data in GTFS format to GPS-like records in a data.frame/data.table, which can then be used in various applications such as running transport simulations or scenario analyses.

The core function of the package takes a GTFS.zip file and interpolates the space-time position of each vehicle in each trip considering the network distance and average speed between stops. The output is a data.table where each row represents the timestamp of each vehicle at a given spatial resolution. The package also has some functions to subset GTFS data in time and space and to convert both representations to simple feature format.

Installation

Please install gtfs2gps package from CRAN to get the stable version.

install.packages("gtfs2gps")
library(gtfs2gps)

Vignette

Please see our vignette:


Credits ipea

The gtfs2gps package is developed by a team at the Institute for Applied Economic Research (Ipea) with collaboration from the National Institute for Space Research (INPE), both from Brazil. You can cite this package as:

About

Convert GTFS data into a data.table with GPS-like records in R

https://ipeagit.github.io/gtfs2gps/

License:Other


Languages

Language:R 96.1%Language:C++ 3.9%