1.0.2 • Published 9 years ago

outagamie-county-recycling v1.0.2

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

outagamie-county-recycling

Outagamie County recycling route geodata.

This is a WIP, but for now, you can find out when your next recycling day is!

Install

npm install outagamie-county-recycling

Usage

import {getNextRecycleDate} from 'outagamie-county-recycling';

let longitude = -88.261194;
let latitude = 44.290477;

let date = getNextRecycleDate([longitude, latitude]);
console.log(date.toString());
// > Mon Sep 07 2015 00:00:00 GMT-0500 (CDT)

API

getNextRecycleDate(point[, date])

Arguments:

  • point {Array} - longitude and latitude values.
  • date {Date} - (optional) defaults to now.

Returns:

  • Date - a javascript date object.

Support

To see if your location is supported by this data, check the map.

Contributing

Contributions are very welcome! To get the most useful and complete data, we need your help.

Route data is stored in data/recycling-routes.geojson. When adding more routes, make sure the associated calendar event in data/recycling-calendar.ics is mapped to the route in data/route-to-event.json.

License

MIT

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago