api_bicing | R Documentation |
Bicing is a Bicycle-sharing system in the city of Barcelona, Spain, which was implemented in March 2007, promoted by the City Council.
api_bicing(port = NULL)
port |
a numeric value used as a port |
This API wraps a manually downloaded set of bicycle stations from the city. Every time the API is invoked, a random number of bicycles are assigned as 'being used' and the timestamp in the returning dataset is updated with the current time.
The API has no parameters
This function launches a plumber API in a new R process using 'callr' and return the 'callr' process.
callr result of the individual R process
Jorge Cimentada
## Not run: live_api <- api_bicing() live_api$kill() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.