Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dinoshunter/bikesantiago-client
Scraping data from bikesantiago page.
https://github.com/dinoshunter/bikesantiago-client
Last synced: 18 days ago
JSON representation
Scraping data from bikesantiago page.
- Host: GitHub
- URL: https://github.com/dinoshunter/bikesantiago-client
- Owner: dinoshunter
- Created: 2016-02-22T01:47:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-18T20:37:36.000Z (over 8 years ago)
- Last Synced: 2024-10-04T20:18:42.291Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bikesantiago-client
## Introduction
Scraping data from [bikesantiago][1], this npm module expose a function for get a geojson object whit
all bike station available in the sistem.## Usage
```javascript
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:
```json
{
"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
}
}
}
]
}
```[1]: http://www.bikesantiago.cl/