News for hackers. Stuff that matters.
Re:Man, weather.com really sucks. I bet I could make a bette... by carpal on Sunday December 30, 2007 @02:55PM (#93697)
Are those valid zip codes? Neither 77915 or 12345 are in my database of zip codes.

I have a table that has the lat/long of zip codes so that I can find the closest observation station.

Edit: If I can't find the zip, I'll default to that state's center. So even invalid zip codes like 12345 will "work"- in this case, it'll go to around Schenectady.

Re:Man, weather.com really sucks. I bet I could make a bette... by irrelative on Sunday December 30, 2007 @07:27PM (#93761)
Having worked there, I can confirm that 12345 is a valid zip code -- it's technically the zip code for the GE plant in Schenectady. It was at one point, large enough to warrant its own zip code...