ckundo/sandy — pull request #6 by jpettersson (2012-11-13 00:20:47+00:00)
Title: Cached coordinates for ConEd, LIPA & PSEG

Cameron,

I exported the sanitized GPS data from my site and bundled it with the gem. Each provider has a gps_data.yml, which is a hash of area names => coordinates.

I added a new module called CoordinateCache which deals with loading the YAML and finding coordinates. This module is used by the StormCenter but can also be used standalone such as in the PSEG Provider.

The process I used to obtain the coordinates was a mix of scripting and manual work. I included ConEd in this because they rounded their coordinates to 2 decimal places, which ruined their accuracy.

ConEd and LIPA should be fairly complete, there are a few areas is each that still lack coordinates. PSEG is tricker, I'm not that familiar with NJ geography and there are some towns with identical names. While we need to touch up on some of the coordinates I believe this is a good start. This is the data that's currently live on my site.

I will send you a gist with the tools I've used to get & test the coordinates.

Also, I created providers for OrangeRockland and JCPL, but I decided to remove those for this merge to simplify.

Best,
J