Hi, I was curious if anyone knew of any java standard library classes or methods that would return some sort of indicator of a time zone, given geographical coordinates. I don't want to reinvent the wheel if it's not necessary.
Printable View
Hi, I was curious if anyone knew of any java standard library classes or methods that would return some sort of indicator of a time zone, given geographical coordinates. I don't want to reinvent the wheel if it's not necessary.
askgeo.com seems like a possibility. Never used it myself though and it is commercial for commercial use.
This thread has a bunch of other suggestions.
Well, I have over 600 coordinates that I need to get timezones for. It can be a one time only sorta thing, and I can just store the data for future use. If there is no really basic way of doing it, I may be able to automatically query some sort of online script and scan the resulting html page for the information I'm after.
Does anyone know any websites that takes coordinates in the url and returns a page with the location's timezone? Maybe even a search engine that does it?
My alternative is to just approximate them.
Here's one web service:
EarthTools: Webservices
I'm not sure if the google maps API also has this service, but it might be worth looking into.
This also may not be too hard to implement yourself...I can almost guarantee that timezone coordinates can be downloaded in some format (for instance KML). In java, you can read these in and define a Shape based upon the coordinates, then with a lat/lng query defined as a Point query (using the contains() method) which Shape contains the coordinates (and Map the Shape to the timezone).