Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ipeaGIT/gtfstools

General Transit Feed Specification (GTFS) Editing and Analysing Tools
https://github.com/ipeaGIT/gtfstools

gtfs public-transport publictransport r

Last synced: 8 days ago
JSON representation

General Transit Feed Specification (GTFS) Editing and Analysing Tools

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# gtfstools logo

[![CRAN status](https://www.r-pkg.org/badges/version/gtfstools)](https://CRAN.R-project.org/package=gtfstools)
[![gtfstools status badge](https://dhersz.r-universe.dev/badges/gtfstools)](https://dhersz.r-universe.dev)
[![B status](https://github.com/ipeaGIT/gtfstools/workflows/check/badge.svg)](https://github.com/ipeaGIT/gtfstools/actions?query=workflow%3Acheck)
[![Codecov test coverage](https://codecov.io/gh/ipeaGIT/gtfstools/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ipeaGIT/gtfstools?branch=master)
[![Lifecycle: experimental](https://lifecycle.r-lib.org/articles/figures/lifecycle-experimental.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![CRAN/METACRAN Total downloads](http://cranlogs.r-pkg.org/badges/grand-total/gtfstools?color=yellow)](https://CRAN.R-project.org/package=gtfstools)

**gtfstools** offers a set of convenient tools for editing and analysing
transit feeds in GTFS format. Feeds are read as a `list` of `data.table`s,
allowing for easy and fast data manipulation. Many of this package's features
are based on functions from other packages, especially
[`{tidytransit}`](https://github.com/r-transit/tidytransit) and
[`{gtfs2gps}`](https://github.com/ipeaGIT/gtfs2gps).

## Installation

Stable version:

```{r, eval = FALSE}
install.packages("gtfstools")
```

Development version:

```{r, eval = FALSE}
# either
install.packages("gtfstools", repos = "https://dhersz.r-universe.dev")

# or
# install.packages("remotes")
remotes::install_github("ipeaGIT/gtfstools")
```

This package requires a working installation of
[`{sf}`](https://github.com/r-spatial/sf). Please check [this
link](https://github.com/r-spatial/sf#installing) for more information on how
to install it.

## Usage

Please read **gtfstools** vignettes for more on the package usage:

- Basic usage: reading, analysing, manipulating and writing feeds. Run
`vignette("gtfstools")` or check it on the website ([Introduction to
gtfstools](https://ipeagit.github.io/gtfstools/articles/gtfstools.html)).
- Filtering GTFS feeds. Run `vignette("filtering", package = "gtfstools")` or
check it on the website ([Filtering GTFS
feeds](https://ipeagit.github.io/gtfstools/articles/filtering.html)).
- Validating GTFS feeds. Run `vignette("validating", package = "gtfstools")` or
check it on the website ([Validating GTFS
feeds](https://ipeagit.github.io/gtfstools/articles/validating.html)).

## Related packages

- [`{tidytransit}`](https://github.com/r-transit/tidytransit)
- [`{gtfs2gps}`](https://github.com/ipeaGIT/gtfs2gps)
- [`{gtfsrouter}`](https://github.com/UrbanAnalyst/gtfsrouter)

## Acknowledgement IPEA

**gtfstools** is developed by a team at the Institute for Applied Economic
Research (Ipea), Brazil.