sg-parking-spots

0.1.0 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i sg-parking-spots

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • matiassingers