Title: | Get Pedestrian Frequency Data from the 'Hystreet' Project |
---|---|
Description: | An R API wrapper for the 'Hystreet' project <https://hystreet.com>. 'Hystreet' provides pedestrian counts in different cities in Germany. |
Authors: | Johannes Friedrich [aut, cre] |
Maintainer: | Johannes Friedrich <[email protected]> |
License: | GPL-2 |
Version: | 0.0.3 |
Built: | 2025-02-28 07:19:32 UTC |
Source: | https://github.com/johannesfriedrich/hystreet |
An R API wrapper for the hystreet project. Download and analyse environmental data provided by https://hystreet.com/
Package: | hystReet |
Type: | Package |
Version: | 0.0.3 |
Date: | 2022-11-24 |
License: | GPL-2 |
Downloaded data for the vignette
[data.frame] with all available stations in March 2020
Johannes Friedrich
Downloaded data for the vignette
[data.frame] with pedestrians counta from January 2019
Johannes Friedrich
Get station IDs of the Hystreet project
get_hystreet_locations(API_token = NULL)
get_hystreet_locations(API_token = NULL)
API_token |
character (optional): API key to get access to Hystreet API |
data.frame with parsed data from hystreet API
0.0.2
Johannes Friedrich
## Not run: get_hystreet_locations() ## End(Not run)
## Not run: get_hystreet_locations() ## End(Not run)
Get data from a specific location from the Hystreet Project via Hystreet API
get_hystreet_station_data( hystreetId = NULL, query = NULL, no_metadata = FALSE, API_token = NULL )
get_hystreet_station_data( hystreetId = NULL, query = NULL, no_metadata = FALSE, API_token = NULL )
hystreetId |
integer (required): ID of the requested station. See |
query |
list (optional): A list with queries. Up do date the following queries are supported:
|
no_metadata |
logical (optional): If set to |
API_token |
character (optional): API key to get access to Hystreet API |
data.frame with parsed data from hystreet API
0.0.3
Johannes Friedrich, Yannik Buhl
## Not run: ## request data of the current day of station with hystreetId 71 get_hystreet_station_data(71) ## request data of December 2018 with resolution "day" get_hystreet_station_data( hystreetId = 71, query = list(from = "2018-12-01", to = "2018-12-31", resolution = "day")) ## End(Not run)
## Not run: ## request data of the current day of station with hystreetId 71 get_hystreet_station_data(71) ## request data of December 2018 with resolution "day" get_hystreet_station_data( hystreetId = 71, query = list(from = "2018-12-01", to = "2018-12-31", resolution = "day")) ## End(Not run)
Get statistics from the Hystreet Project via Hystreet API
get_hystreet_stats(verbose = FALSE, API_token = NULL)
get_hystreet_stats(verbose = FALSE, API_token = NULL)
verbose |
logical (optional): Show more verbose output? |
API_token |
character (optional): API key to get access to Hystreet API |
data.frame with parsed data from hystreet API
0.0.2
Johannes Friedrich
## Not run: get_hystreet_stats(TRUE) ## End(Not run)
## Not run: get_hystreet_stats(TRUE) ## End(Not run)
Downloaded data for the vignette
[list] with results from location 71 in december 2018
Johannes Friedrich
Downloaded data for the vignette
[data.frame] with all available locaations (03/27/2020)
Johannes Friedrich
Downloaded data for the vignette
[data.frame] with pedestrians counta/day
Johannes Friedrich
Read downloaded data from the hystreet webpage to data.frames
read_hystreet_csv(path, ...)
read_hystreet_csv(path, ...)
path |
character (required): path to the downloaded csv file |
... |
(optional): arguments passed to |
data.frame with parsed data from hystreet API
0.0.1
Johannes Friedrich
## Not run: ## read data from downloaded csv file data df <- hystReet::read_hystreet_csv("~/Downloads/hystreet.csv") ## End(Not run)
## Not run: ## read data from downloaded csv file data df <- hystReet::read_hystreet_csv("~/Downloads/hystreet.csv") ## End(Not run)
Set your API token for the Hystreet API
set_hystreet_token(API_token = NULL)
set_hystreet_token(API_token = NULL)
API_token |
character (required): API key to get access to Hystreet API |
Set environment variable
0.0.1
Johannes Friedrich