Node.js utility for EcoBici (Buenos Aires Public Bicycle Sharing System) real time API data
var ecobici = require('ecobici');
ecobici(function (err, dataObj) {
if (err) { console.log("An error has occurred: " + err); return; }
// dataObj is a newly created object used to query request result
// raw fetched data accesible via dataObj.data, with the format below
/* dataObj.data = [
{
EstacionNombre: 'Estación Obelisco', // Station name
BicicletaDisponibles: 2, // Available bikes
EstacionDisponible: 'SI', // Operational station ('SI') or not
Latitud: '-34.603743', // Latitude
Longitud: '-58.381570', // Longitued
AnclajesTotales: 50, // Total docking places
AnclajesDisponibles: 48, // Available docking places
},
...
]
*/
});
Returns operational stations
Returns non operational stations
Returns the n stations with more bikes. If n is omitted, returns one station
Returns the n stations with less bikes. If n is omitted, returns one station
Returns the stations with at least one available bike
Returns the n closest stations to the specified location under options. This method is asyncronous.
Returns global average usage level