Ecosyste.ms: Awesome

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

https://github.com/r-transit/tidytransit

R package for working with GTFS data
https://github.com/r-transit/tidytransit

cran gtfs public public-transport tidyverse transit transit-data transport transportation

Last synced: about 2 months ago
JSON representation

R package for working with GTFS data

Lists

README

        

[![CRAN
status](https://www.r-pkg.org/badges/version-ago/tidytransit?)](https://cran.r-project.org/package=tidytransit)
[![Project Status: Active](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![](https://cranlogs.r-pkg.org/badges/tidytransit)](https://cran.r-project.org/package=tidytransit)
[![](https://cranlogs.r-pkg.org/badges/grand-total/tidytransit?color=lightgrey)](https://cran.r-project.org/package=tidytransit)
[![R build
status](https://github.com/r-transit/tidytransit/workflows/R-CMD-check/badge.svg)](https://github.com/r-transit/tidytransit/actions?query=workflow%3AR-CMD-check)
[![codecov](https://codecov.io/gh/r-transit/tidytransit/branch/master/graph/badge.svg)](https://app.codecov.io/gh/r-transit/tidytransit/)

# tidytransit

Use tidytransit to map transit stops and routes, calculate travel times and transit
frequencies, and validate transit feeds. Tidytransit reads the
[General Transit Feed Specification](https://gtfs.org/) into
[tidyverse](https://tibble.tidyverse.org/) and
[simple features](https://en.wikipedia.org/wiki/Simple_Features) data frames.
Tidytransit can be used to:
- [read GTFS feeds into R](https://r-transit.github.io/tidytransit/reference/read_gtfs.html)
- [calculate travel times between transit stops](https://r-transit.github.io/tidytransit/reference/travel_times.html)
- [convert stops and routes to sf data frames](https://r-transit.github.io/tidytransit/reference/gtfs_as_sf.html)
- [validate transit feeds and more](https://r-transit.github.io/tidytransit/reference/index.html)

Have a look at the following vignettes to see how tidytransit can be used to analyse a feed:

- [introduction](https://r-transit.github.io/tidytransit/articles/introduction.html)
- [calendar and service patterns](https://r-transit.github.io/tidytransit/articles/servicepatterns.html)
- [create time tables for stops](https://r-transit.github.io/tidytransit/articles/timetable.html)
- [frequency and headway calculations](https://r-transit.github.io/tidytransit/articles/frequency.html)

## Installation

This package requires a working installation of
[sf](https://github.com/r-spatial/sf#installing).

Install tidytransit from CRAN:

``` r
install.packages('tidytransit')
```

For the development version from Github:

```r
# install.packages("devtools")
devtools::install_github("r-transit/tidytransit")
```

## GTFS-related packages

- [`gtfsio`](https://github.com/r-transit/gtfsio) R package to read and write gtfs feeds, tidytransit builds on gtfsio
- [`gtfstools`](https://github.com/ipeaGIT/gtfstools) Tools for editing and analysing transit feeds
- [`gtfsrouter`](https://github.com/UrbanAnalyst/gtfsrouter) Package for public transport routing
- [`gtfs2gps`](https://github.com/ipeaGIT/gtfs2gps) Converting public transport data from GTFS format to GPS-like records

## Contributing

Please feel free to issue a pull request or [open an issue](https://github.com/r-transit/tidytransit/issues/new).