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.
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...
(Texas) Sorry, we couldn't find a result for "77915".
(New York) Sorry, we couldn't find a result for "12345".
90210 works