Ted Byers wrote:
> On Thu, Aug 6, 2009 at 10:39 PM, J. Shirley<jshir...@gmail.com> wrote:
>   
>> On Thu, Aug 6, 2009 at 7:27 PM, Jim Brunette <ca...@brownhare.com> wrote:
>>
>>     
>>> Is there a lat/lon database that contains the timezone boundaries?
>>>
>>> With a lat/long TZ DB, users could input their city or zip (or heck, if
>>> they know it, their lat/lon), then the app would associate the user's
>>> lat/lon with the TZ lat/lon and output the TZ (if the user's lat/lon was
>>> not found, the app would just fall back to the continent/city names).
>>>
>>> To take it one step further, mobile apps with GPS have real-time
>>> lat/lon, so getting the TZ should be easy... How useful such an mobile
>>> app would be is another question.
>>>
>>> Jim
>>>
>>>
>>>
>>>
>>>
>>>
>>>       
>> geonames.org provides this, via a simple HTTP interface.
>>
>> Here's a blog post describing usage:
>> http://vancouverwebconsultants.com/getting-time-zone-from-latitude-longitude/(though
>> in PHP)
>>
>> To fetch, it's very simple:
>> http://ws.geonames.org/timezone?lat=$lat&lng=$lng
>>
>> -J
>>
>>     
> Well live and learn.  Use someone else's hardware and software to do
> the heavy lifting.  ...  ;-)
>
> I'll have to check it out.  It is trivial to write Perl that is
> equivalent to a given PHP code snippet.  ;-)
>
> Thanks
>
> Ted
>
>   

Talk about embarrassing, I already use geonames.org's find* web services
for geocoding--did not look farther down their web services list. Thanks
a bunch, Jay.

Jim

Reply via email to