Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ipeagit/gtfs2gps
Convert GTFS data into a data.table with GPS-like records in R
https://github.com/ipeagit/gtfs2gps
gps-format gtfs gtfs-format public-transport r rspatial transport
Last synced: 1 day ago
JSON representation
Convert GTFS data into a data.table with GPS-like records in R
- Host: GitHub
- URL: https://github.com/ipeagit/gtfs2gps
- Owner: ipeaGIT
- License: other
- Created: 2019-08-22T02:13:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-08T02:54:50.000Z (about 1 month ago)
- Last Synced: 2024-10-10T09:49:31.591Z (about 1 month ago)
- Topics: gps-format, gtfs, gtfs-format, public-transport, r, rspatial, transport
- Language: R
- Homepage: https://ipeagit.github.io/gtfs2gps/
- Size: 12.9 MB
- Stars: 70
- Watchers: 7
- Forks: 10
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gtfs2gps: Converting public transport data from GTFS format to GPS-like records
[![CRAN/METACRAN Version](https://www.r-pkg.org/badges/version/gtfs2gps)](https://CRAN.R-project.org/package=gtfs2gps).[![CRAN/METACRAN Total downloads](https://cranlogs.r-pkg.org/badges/grand-total/gtfs2gps?color=blue)](https://CRAN.R-project.org/package=gtfs2gps)
[![R-CMD-check](https://github.com/ipeaGIT/gtfs2gps/workflows/R-CMD-check/badge.svg)](https://github.com/ipeaGIT/gtfs2gps/actions)
[![Codecov test coverage](https://codecov.io/gh/ipeaGIT/gtfs2gps/branch/master/graph/badge.svg)](https://codecov.io/gh/ipeaGIT/gtfs2gps?branch=master)
[![Paper](https://img.shields.io/badge/DOI-10.1007%2Fs10109--022--00400--x-blue)](https://link.springer.com/article/10.1007/s10109-022-00400-x)**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](https://CRAN.R-project.org/package=sf) format. More information about the methods used in the package can be found in this [preprint](https://osf.io/preprints/socarxiv/qydr6/).
### Installation
Please install **gtfs2gps** package from CRAN to get the stable version.
``` r
install.packages("gtfs2gps")
library(gtfs2gps)
```### Vignette
Please see our vignette:
* [gtfs2gps: Converting GTFS data to GPS format](https://ipeagit.github.io/gtfs2gps/articles/intro_to_gtfs2gps.html)
-----
### Credits
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:
- Pereira, R. H. M., Andrade, P. R., & Vieira, J. P. B. (2022). Exploring the time geography of public transport networks with the gtfs2gps package. *Journal of Geographical Systems*. [https://doi.org/10.1007/s10109-022-00400-x](https://doi.org/10.1007/s10109-022-00400-x)