node-red-web-nodes
node-red-web-nodes copied to clipboard
Barclays Cycle Hire Node
Query Node
The user has the choice of either:
- Single station - Fixes the node to return information on a single cycle station. Due to the vast amount of stations to choose from, it is likely that there will be some sort of system in the UI to help the user find the station they are looking to enter.
- Location Based - Returns information based upon a certain number of factors provided by the user. The user will provide a location and parameters (available bikes, available spaces) and the node will return the nearest X stations (where X is user provided).
Input Node
- Single station - The same as the query node - fixed to a single station. Will offer the user several settings to decide when data should be output (certain number of open spaces/bikes).
- Location Based - The user will specify a location, a radius and a certain amount of criteria for stations within that radius to be output (if a station within the radius has 3 or less bikes available, outpu).
Options
-
API Key
- The user provided API key for the TFL feed.
Input node
: Either: - `Longitude` - For the user to provide the longitudinal degree of the location. - `Latitude` - For the user to provide the latitudinal degree of the location. - `Radius` - A radius from the geolocation to check all stations within. - `Bikes available` - The amount of available bikes required at a station within the radius. - `Spaces available` - The amount of available stations required for a station to be output. - `Locked` - Whether or not the user wants locked stations to be returned.Or:
-
Station
- A drop down menu of street names corresponding to the stations.
Query node
: Either: - `Longitude` - For the user to provide the longitudinal degree of the location. - `Latitude` - For the user to provide the latitudinal degree of the location. - `number of bikes` - The amount of nearest stations to return. - `Bikes available` - The amount of available bikes required for the station to be selected. - `Spaces available` - The amount of available stations required for the station to be selected. - `Locked` - Whether or not the user wants locked stations to be returned.Or:
-
Station
- A drop down menu of street names corresponding to the stations.
Outputs
-
name
- Text description of the street in which the station is e.g River Street, Clerkenwell. -
lat
- latitude location of the station. -
lon
- longitude location of the station. -
locked
- a boolean which tells the user whether or not the station is locked. If the station is locked, the user can return a bike, but not retrieve it. -
bikes
- The amount of available bikes at the station. -
spaces
- The amount of open spaces at the station.
This node has been so long in the making that the Barclays sponsorship has elapsed :-) Now known as "Santander Cycles" http://www.tfl.gov.uk/modes/cycling/santander-cycles