Skip to content

A Node.js library for Seattle Public Utilities web services.

Notifications You must be signed in to change notification settings

philliphoff/spu-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seattle Public Utilities API

A Node.js library for Seattle Public Utilities web services.

Note: this library is in no way affiliated, endorsed, or otherwise acknowledged by Seattle Public Utilities.

API

function getCollectionDays(address, cb)

  • address: (string) A Seattle house number and street.
  • cb: (function) A callback that will receive either an error or an array representing the next few collection days.

Each collection day object has the following properties:

  • date: (Date) The day's date.
  • foodAndYardWaste: (boolean) True if food and yard waste bins will be collected.
  • garbage: (boolean) True if garbage bins will be collected.
  • recycling: (boolean) True if recycling bins will be collected.

Example

var spu = require('spu-api');

spu.getCollectionDays('123 MAIN ST', function (err, days) {
    if (err) {
        return console.error(err);
    }

    console.log(days);
});

License

MIT

About

A Node.js library for Seattle Public Utilities web services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages