Skip to content

dinoshunter/bikesantiago-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bikesantiago-client

Introduction

Scraping data from bikesantiago, this npm module expose a function for get a geojson object whit all bike station available in the sistem.

Usage

var bksantiago = require('bikesantiago-client');

// async function call
bksantiago(function(geojson){
    // do something...
    console.log(JSON.stringify(geojson));
});

Geojson object result

The geojson object is a standar geojson object, a example ouput with only one feature is:

{
  "type": "FeatureCollection",
  "crs": {
    "type": "name",
    "properties": {
      "name": "EPSG:4326"
    }
  },
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          -70.59037999999998,
          -33.40296
        ]
      },
      "properties": {
        "type": "bikesantiago",
        "docker": {
          "title": "El Ciruelillo",
          "dir": "Alonso de Córdova / El Ciruelillo",
          "docks": 10,
          "bikes": 5
        }
      }
    }
    ]
}

About

Scraping data from bikesantiago page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published