arm5077/wheresbill — pull request #4 by carols10cents (2014-02-01 21:31:39+00:00)
Title: Location tweaks

Once I was able to [see previous days]() of where Bill has been, I noticed a few locations that weren't showing anything on the map.

This was due to two little bugs-- one was that "Pittsburgh, Pa" wasn't being added if there wasn't a zip code because a failing match for a zipcode was returning `null` for me, and the conditional was checking if `null == ""` which was false when that case was supposed to be true. So I changed that to `! match` instead and it seems to be working for me-- let me know if this causes any trouble, I'm wondering if it's browser-dependent what an unsuccessful match returns :-/ (I'm using Firefox)

The other issue I saw was when an event had a location of `Mayor's Office`, which when added to the URL became `address=Mayor` since the `&` started a new URL parameter. I just switched the `$.getJSON` to take the parameters as an object, which then lets jQuery take care of the URI encoding.