Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73589

Re: How to get Timezone from latitude/longitude ?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.027
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:github': 0.09; 'subject:How': 0.10; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'advance.': 0.19; 'memory': 0.22; 'header:User-Agent:1': 0.23; 'this:': 0.26; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'am,': 0.29; "i'm": 0.30; '25,': 0.31; 'larry': 0.31; 'writes:': 0.31; 'subject:from': 0.34; 'could': 0.34; 'google': 0.35; 'doing': 0.36; 'thanks': 0.36; 'hi,': 0.36; 'seconds': 0.37; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'easy': 0.60; 'took': 0.61; 'map': 0.64; 'note:': 0.66; 'online': 0.71; 'url:a': 0.72; 'subject:get': 0.81; 'received:89': 0.85
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Akira Li <4kir4.1i@gmail.com>
Subject Re: How to get Timezone from latitude/longitude ?
Date Thu, 26 Jun 2014 00:44:42 +0400
References <9d6022cc-c5ca-448b-921f-fba9241f4b5c@googlegroups.com> <CACwCsY5zke8zT5YDdaWmBWsLa5ZS+TJRHn127sq8kTCp6kuTZA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain
X-Gmane-NNTP-Posting-Host 89.169.229.68
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
Cancel-Lock sha1:tZ0q7D7BFSMPyTQ2fYT7MNHFXEY=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11243.1403729110.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1403729110 news.xs4all.nl 2883 [2001:888:2000:d::a6]:51623
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73589

Show key headers only | View raw


Larry Martell <larry.martell@gmail.com> writes:

> On Wed, Jun 25, 2014 at 8:53 AM,  <codetarsier@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to get Timezone from latitude/longitude ? codetarsier@gmail.com - 2014-06-25 05:53 -0700
  Re: How to get Timezone from latitude/longitude ? Bernd Nawothnig <Bernd.Nawothnig@t-online.de> - 2014-06-25 15:09 +0200
  Re: How to get Timezone from latitude/longitude ? Larry Martell <larry.martell@gmail.com> - 2014-06-25 09:09 -0400
  Re: How to get Timezone from latitude/longitude ? Chris Angelico <rosuav@gmail.com> - 2014-06-25 23:27 +1000
    Re: How to get Timezone from latitude/longitude ? Marko Rauhamaa <marko@pacujo.net> - 2014-06-25 17:00 +0300
      Re: How to get Timezone from latitude/longitude ? Grant Edwards <invalid@invalid.invalid> - 2014-06-25 14:24 +0000
        Re: How to get Timezone from latitude/longitude ? Ethan Furman <ethan@stoneleaf.us> - 2014-06-25 07:34 -0700
          Re: How to get Timezone from latitude/longitude ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-06-26 11:29 +1200
            Re: How to get Timezone from latitude/longitude ? codetarsier@gmail.com - 2014-06-26 02:24 -0700
  Re: How to get Timezone from latitude/longitude ? Akira Li <4kir4.1i@gmail.com> - 2014-06-26 00:44 +0400

csiph-web