bicimad

1.0.1 • Public • Published

bicimad

Node package that returns the list of BiciMad stations.

Installation

yarn add bicimad

or

npm install bicimad

Usage

let Bicimad = require('bicimad');

Bicimad.get().then(result =>
  console.log(result)
);

That should return something like this:

{
  code: '0',
  description: 'ok',
  whoAmI: 'BiciMad',
  version: '3.0.0 (posBiciMad)',
  time: '06-02-2021 16:09:41.023',
  data: {
    stations: [
      [Object], [Object], [Object], [Object], [Object], [Object],
      ... 164 more items
    ]
  }
}

Each station has this format:

{
  id: 1,
  latitude: '40.4172137',
  longitude: '-3.7018341',
  name: 'Puerta del Sol A',
  light: 2,
  number: '1a',
  address: 'Puerta del Sol nº 1',
  activate: 1,
  no_available: 0,
  total_bases: 30,
  dock_bikes: 20,
  free_bases: 10,
  reservations_count: 0
}

Readme

Keywords

Package Sidebar

Install

npm i bicimad

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.21 kB

Total Files

4

Last publish

Collaborators

  • javier