silicosaur
silicosaur

Reputation: 65

How can I get the timezone of given gps coordinates on iPhone?

My question is simple. I have the GPS coordinates of a place and I need to know, in what time zone (and daylight saving settings) is on that place. Is any easy solution for this problem in objective c?

Upvotes: 1

Views: 3069

Answers (3)

Palimondo
Palimondo

Reputation: 7411

Geonames.org has a REST style free web service that provides geolocation to timezone conversion under CC attribution license. Response is XML or JSON.

Upvotes: 0

Jules
Jules

Reputation: 19

DRT Engine can give you a timezone offset based on latitude/longitude coordinates and a datetime value.

Upvotes: 0

Bryan Henry
Bryan Henry

Reputation: 8408

It doesn't look like the MKReverseGeocoder class added in MapKit with 3.0 will give you such information, unfortunately. That might make for a good Radar enhancement request, eh? (http://bugreporter.apple.com)

However, with a quick Google search, I found http://www.earthtools.org/webservices.htm#timezone - it appears you could query that and get a nice XML result back. Just be sure to obey the usage restrictions listed at the top of that page.

Upvotes: 2

Related Questions