stop_flatten: Transit stop data flattener

Description Usage Arguments Value Examples

View source: R/get_transit.R

Description

The stop_flatten helper-function flattens JSON from [Winnipeg Transit API v3](https://api.winnipegtransit.com/home/api/v3) into a tidy format. For use with rjson::fromJSON.

Usage

1

Arguments

list

is the result of the list that results form parsing the Transit stops JSON data into R.

Value

A flattend dataframe containing stops data.

Examples

1
2
3
4
5
6
## Not run: 
    stop_flatten(
         rjson::fromJSON(<API_call_string>)
         )

## End(Not run)

jdallmann/winnipegr documentation built on Jan. 20, 2020, 2:05 a.m.