0.1.0 • Published 9 years ago

sg-parking-spots v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

sg-parking-spots Build Status Dependency Status Coverage Status

available parking spots in Singapore

Uses the Traffic APIs from Land Transport Authority.

Install

$ npm install --save sg-parking-spots

Usage

var sgParkingSpots = require('sg-parking-spots');

sgParkingSpots(function(spots){
  console.log(spots);
  // => [ { name: 'Suntec City', area: 'Marina', datetime: '1436592857317', lot: '1154', coordinates: { latitude: 1.2935, logitude: 103.8572 } }, ...
});

CLI

$ npm install --global sg-parking-spots
$ sg-parking-spots --help

  available parking spots in Singapore

  Example
    sg-parking

  =>  NAME                   LOT
      313@Somerset            35
      Centrepoint            129
      Concorde Hotel         184
      [...]

Related

License

MIT © Matias Singers