New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bicing

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bicing

Get the list of Bicing stations.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

bicing

Node package that returns the list of Bicing stations.

Installation

yarn add bicing

or

npm install bicing

Usage

let bicing = require('bicing');

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

That should return something like this:

{
  stations: [
    [Object], [Object], [Object], [Object], [Object], [Object],
    ... 164 more items
  ]
}

Each station has this format:

{
  id: "1",
  type: "BIKE",
  latitude: 41.3979779,
  longitude: 2.1801069,
  streetName: "GRAN VIA CORTS CATALANES, 760",
  streetNumber: "",
  slots: 29,
  bikes: 16,
  type_bicing: 2,
  electrical_bikes: 1,
  mechanical_bikes: 15,
  status: 1,
  disponibilidad: 25,
  icon: "/modules/custom/mapa_disponibilitat/assets/icons/ubicacio-25.png",
  transition_start: "",
  transition_end: ""
}

Keywords

bicing

FAQs

Package last updated on 24 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts