get_open_data: City of Winnipeg Open Data API

Description Usage Arguments Value Examples

View source: R/get_open_data.R

Description

This function uses the RSocrata package to get Winnipeg City data from the Winnipeg Open Data site data.winnipeg.ca. Users with a City of Winnipeg open data account can also use their login credentials to have full (non-throttled) access to the API.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
get_open_data(
  type = c("parking", "2018 polling geoms", "air quality", "tax parcels", "trees",
    "building permits", "plow schedule", "parking bans", "parks", "park assets",
    "council expenses", "public notices", "mosquito traps", "address coords",
    "permit details", "burials", "dispositions", "311", "lane closures", "contravention",
    "vehicle for hire contravention", "parking citations", "ticket adjudication results",
    "TSI-cameras detail", "TSI-pole and cabinet locations", "TSI-locations",
    "TSI-corridor box indications detail",      "TSI-corridor boxes detail",
    "TSI-heads (displays) detail", "TSI-hardware detail", "TSI-pole and arms detail",
    "TSI-bases detail trans", "TSI-pole and arms detail", "traffic signal malfunctions",
    "TSI-traffic signal damage", "transport mode", "TMC-confirmed incidents",
    "transit on-time", "transit on-time hist", "transit pass-ups", "fipa requests",
    "capex", "river levels", "river james", "survey parcel", "boundary", "population"),
  app_token = NA,
  email = NA,
  password = NA
)

Arguments

type

Specifies with data set to download. Currently supports WPA parking station data ("parking"), 2018 election polling subdivision units ("2018 polling geoms"), air quality data ("air quality"), taxation assessment parcels ("tax parcels"), tree inventory ("trees"), building permits ("building permits"), snow plow schedule ("plow schedule"), parking ban schedule ("parking bans"), parks and open space ("parks"), park asset inventory ("park assets"), council member expenses ("council expenses"), ("public notices"), daily adult mosquito trap data ("mosquito traps"), ("address coords"), detailed building permit data ("permit details"), burial records ("burials"), public meeting dispositions ("dispositions"), 311 service requests ("311"), lane closure ("lane closures"), by-law investigations ("by-law"), recycling, garbage and yard waste collection days ("collection days"), 311 interactions by channel ("311 channels"), ("school enrolments"), ("river levels"), residential garbage, recycling and yard waste tonnage reports ("waste tonnage"), Winnipeg City open data and website analytics ("web analytics"), James Avenue river levels ("river james"), "vehicle for hire contravention", "parking citations", "ticket adjudication results", "TSI-cameras detail", "TSI-pole and cabinet locations", "TSI-locations", "TSI-corridor box indications detail", "TSI-corridor boxes detail", "TSI-heads (displays) detail", "TSI-hardware detail", "TSI-pole and arms detail", "TSI-bases detail trans", "TSI-pole and arms detail", "traffic signal malfunctions", "TSI-traffic signal damage", "transport mode", "TMC-confirmed incidents", "transit on-time", "transit on-time hist", "transit pass-ups", "fipa requests", "capex", "survey parcel", "boundary", "population".

app_token

Optional app_token parameter for users with a city of Winnipeg Open Data account available at (https://data.winnipeg.ca/)

email

Optional email parameter for users with a city of Winnipeg Open Data account available at (https://data.winnipeg.ca/)

password

Optional password parameter for users with a city of Winnipeg Open Data account available at (https://data.winnipeg.ca/)

Value

A dataframe containing the relvant data set.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
    get_open_data("trees")

    get_open_data("parking", app_token = SOME_API_TOKEN,
        email = FAKE_EMAIL,
        password = FAKE_PASSWORD)

    get_open_data(search_open_data("clerk")$identifier[1])

## End(Not run)

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