Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtrecenti/spgtfs
GTFS da SPTrans.
https://github.com/jtrecenti/spgtfs
Last synced: about 2 months ago
JSON representation
GTFS da SPTrans.
- Host: GitHub
- URL: https://github.com/jtrecenti/spgtfs
- Owner: jtrecenti
- License: other
- Created: 2015-05-14T19:30:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T13:37:19.000Z (almost 8 years ago)
- Last Synced: 2024-10-17T14:34:06.761Z (3 months ago)
- Language: R
- Size: 6.33 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Travis-CI Build Status](https://travis-ci.org/jtrecenti/spgtfs.svg?branch=master)](https://travis-ci.org/jtrecenti/spgtfs)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/jtrecenti/spgtfs?branch=master&svg=true)](https://ci.appveyor.com/project/jtrecenti/spgtfs)
# spgtfs
Downloads GTFS data from SPTrans.
## Install
`spgtfs` is not on CRAN yet. To install, you'll need `devtools`.
```r
if (!require(devtools)) install.packages('devtools')
devtools::install_github('jtrecenti/spgtfs')
```## Usage
To download GTFS data, you'll need to get a login and a password [here](http://www.sptrans.com.br/desenvolvedores/Default.aspx?login).
```r
library(spgtfs)
gtfs_data <- spgtfs_download('', '') %>%
spgtfs_load()gtfs_data
``````
Downloading: 12 MB
``````
# A tibble: 10 × 2
arq data
1 agency.txt
2 calendar.txt
3 fare_attributes.txt
4 fare_rules.txt
5 frequencies.txt
6 routes.txt
7 shapes.txt
8 stops.txt
9 stop_times.txt
10 trips.txt
```