available parking spots in Singapore
Uses the Traffic APIs from Land Transport Authority.
$ npm install --save sg-parking-spots
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 } }, ...
});
$ 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
[...]
MIT © Matias Singers