jondandois / is-recycling-this-week

a little app to help answer the question of whether to put out recycling this week for Baltimore City residents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-recycling-this-week

View this app here: https://jondandois.github.io/is-recycling-this-week/

I wrote this app to help me remember if this week is my recycling week based on Baltimore City DPW's bi-weekly recycling system.

I do not work for Baltimore City government or DPW. I support our hard-working sanitation workers.

I wrote this for fun. Refer to DPW's Collection Updates site for all official information about recycling and waste collection.

Privacy

I respect your privacy. This app does not track you or your address. This is what it does:

  1. Takes the address you enter and sends it to the State of Maryland's "geocoder" service (see below) which will try to turn the address into a latitude, longitude GPS coordinate.
  2. If it gets a GPS coordinate back from the State, it will check to see if it falls inside a local copy of Baltimore City DPWs Week A/B GIS Map.
  3. Prints out a message depending on that result and today's date.

Remember Me

The Remember Me checkbox does not track you and only stores information on your own device to save you from typing information in next time:

  • It saves that you checked the box
  • It saves the address you entered

Sources

Geocoder

This all works because of the geocoder which converts an address into a latitude, longitude coordinate. This one uses the MD iMap Geocoder service

Baltimore DPW Recycling A/B Week Map

Thanks to DPW's GIS department for their efforts in communicating about the City's recycling zones and schedule. DPW's Recycling A/B Week Map is available as an AGO app. I grabbed a copy of their Recycling A/B week map service and convered it into a GEOJSON to use locally in this app.

App Build

  • VueJS for the framework parts
  • TurfJS for the "spatial" parts of the app for checking if an address point is inside a Week A/B polygon.
  • This CodePen example for the "Remember Me" and localStorage bits

About

a little app to help answer the question of whether to put out recycling this week for Baltimore City residents.


Languages

Language:JavaScript 64.8%Language:HTML 23.5%Language:CSS 11.7%