Hope your all doing well.
So I am in the process of developing a timezone iOS application. The application requires that we have a list of high population cities, and that when a user selects one, it determines the Olson Timezone ID necessary for constructing a NSTimeZone object (which we then use for NSDate conversions).
I've been able to obtain a list of cities and their corresponding lat and lng, which I planned to feed into Geoname's Timezone service endpoint, in order to determine the aforementioned Olson timezone ID for each city.
The problem is that the amount of requests I am going to need to make is huge, and I'm wondering if there isn't a more simple solution to my problem. Any suggestions/ideas would be greatly appreciated.
Thanks everyone!
You should build the city/timezone mapping just once (in development) and then supply the pre-built mapping with the app. Then the app never needs to do any Internet lookup of any kind.
You could also put the file on your own server and have the app check for updates once in a while.