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


Groups > linux.debian.user > #208428

Re: Get the timezone from an IP address

From André Rodier <andre@rodier.me>
Newsgroups linux.debian.user
Subject Re: Get the timezone from an IP address
Date 2019-05-08 21:40 +0200
Message-ID <xVAA2-4C1-3@gated-at.bofh.it> (permalink)
References <xVzXj-48E-1@gated-at.bofh.it> <xVA6Z-4rD-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 2019-05-08 at 15:03 -0400, Michael Stone wrote:
> On Wed, May 08, 2019 at 07:43:58PM +0100, André Rodier wrote:
> > Is there any way - or Debian package - to know the timezone from an IP
> > address, or at least from a country? I have successfully used the geoip
> > databases to get the country, so I could use the main city as an
> > approximation.
> > 
> > I would prefer to do this offline, though.
> 
> You can get a guess on lat/lon for an IP and then get the TZ for the 
> coordinates. Lots of options there, e.g.:
> https://stackoverflow.com/questions/16086962/how-to-get-a-time-zone-from-a-location-using-latitude-and-longitude-coordinates
> 

Thanks, I will check this as well, a lot of links!

-- 
André

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Get the timezone from an IP address André Rodier <andre@rodier.me> - 2019-05-08 21:00 +0200
  Re: Get the timezone from an IP address Mindaugas Celiesius <m.celiesius@yandex.ru> - 2019-05-08 21:00 +0200
    Re: Get the timezone from an IP address André Rodier <andre@rodier.me> - 2019-05-08 21:40 +0200
      Re: Get the timezone from an IP address Michael Stone <mstone@debian.org> - 2019-05-08 22:50 +0200
  Re: Get the timezone from an IP address Darac Marjal <mailinglist@darac.org.uk> - 2019-05-08 21:10 +0200
    Re: Get the timezone from an IP address André Rodier <andre@rodier.me> - 2019-05-08 21:40 +0200
  Re: Get the timezone from an IP address Michael Stone <mstone@debian.org> - 2019-05-08 21:10 +0200
    Re: Get the timezone from an IP address André Rodier <andre@rodier.me> - 2019-05-08 21:40 +0200

csiph-web