Description Usage Arguments Value Examples
View source: R/get_open_data.R
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.
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
)
|
type |
Specifies with data set to download. Currently supports
WPA parking station data ( |
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/) |
A dataframe containing the relvant data set.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.