api_bicing: REST API for Bicycle usage in Barcelona

View source: R/api_bicing.R

api_bicingR Documentation

REST API for Bicycle usage in Barcelona

Description

Bicing is a Bicycle-sharing system in the city of Barcelona, Spain, which was implemented in March 2007, promoted by the City Council.

Usage

api_bicing(port = NULL)

Arguments

port

a numeric value used as a port

Details

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.

Value

callr result of the individual R process

Author(s)

Jorge Cimentada

Examples


## Not run: 
  live_api <- api_bicing()
  live_api$kill()

## End(Not run)


cimentadaj/scrapex documentation built on Jan. 5, 2023, 9:49 p.m.