Anyone know of a web service or something out there that I could give a zip code and get a time zone back?
Or is that something I just need to write myself? If so, any hints or guides on how to do that?
I use visual studio 2008 and C#.
Anyone know of a web service or something out there that I could give a zip code and get a time zone back?
Or is that something I just need to write myself? If so, any hints or guides on how to do that?
I use visual studio 2008 and C#.
Write it yourself.
You can identify the state (almost always) by the first two numbers of the zipcode. The very few gaps shouldn't cross over time zone boundaries.
This means you only have 100 entries to store.
there may be something at http://ws.geonames.org. i use it for picking up town names from their webservices. http://www.geonames.org/export/ws-overview.html gives an overview on what's available - see http://www.geonames.org/export/web-services.html#countryInfo
I had the same issue. We bought a subscription to ZipcodeDownload and the schema provides (among other items) timezone. Just loaded into SQL and we were off to the races.
If you do not want to write the codes and maintain the database yourself then try to find web services like http://www.fraudlabs.com/demozipcodeworldUS.aspx
It returns some other information as well.