How to get Timezone from latitude/longitude ?
Akira Li
4kir4.1i at gmail.com
Wed Jun 25 16:44:42 EDT 2014
Larry Martell <larry.martell at gmail.com> writes:
> On Wed, Jun 25, 2014 at 8:53 AM, <codetarsier at gmail.com> wrote:
>> Hi,
>>
>> I'm looking for a python-library which can help me to get Timezone
>> and Timezone-offset(UTC) from latitude/longitude.
>>
>> I'm not able to find an easy way to do it.
>>
>> Thanks in advance.
>
> It took me 30 seconds on google to find this:
>
> https://github.com/pegler/pytzwhere
Note: tzwhere may consume 750GB memory doing nothing
https://github.com/pegler/pytzwhere/pull/10
You could generate a postgis timezone database from efele.net/tz map or
use an online service instead http://stackoverflow.com/a/16519004
--
akira
More information about the Python-list
mailing list