Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.104 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.01; 'charset:iso-8859-7': 0.04; 'melbourne': 0.05; '"my': 0.09; 'oh,': 0.09; 'wrong,': 0.09; 'expecting': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'quoted': 0.16; 'vastly': 0.16; 'sat,': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; '>>>': 0.22; "haven't": 0.24; 'this:': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'chris': 0.29; 'blackberry': 0.30; 'message- id:@mail.gmail.com': 0.30; 'getting': 0.31; 'too.': 0.31; '13,': 0.31; "user's": 0.31; 'quite': 0.32; 'worked': 0.33; 'addresses': 0.33; "i'd": 0.34; 'done.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'shows': 0.36; 'wrong': 0.37; 'too': 0.37; 'two': 0.37; 'list': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'recent': 0.39; 'expect': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'tell': 0.60; 'further': 0.61; 'real': 0.63; 'places': 0.64; 'telling': 0.64; 'carefully': 0.74; 'jul': 0.74; 'dsl': 0.84; 'gps': 0.84; 'greek': 0.84; "isp's": 0.84; 'north,': 0.91; 'states,': 0.91; 'whereas': 0.91; 'technique': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=SEdl7SylljWOYfFq7jwaqifUrIktz75dsrf6tTsYfW8=; b=xju4Ww4ygx2EPQkIsDfPnHOX1KjFtYZTBGdEJ3rV7ybGYU+xaIcFI73RmKfCDD9u6j JO/jlFUo/PO9NnYBPVFaz52hQjwvohIMQ0WXX41m63L3HiICY6FdWY88/EOYk9ihlN3H GiUCDRDEx7VI5jxZyRGBfsPnBEuM+cgWnmoeSMuz0jWCUV3bxIX0qcgA9yAeC1qY7b9B 8bmDRX9mbladvUc23gsq/qTZY8U1cQpCIfrds4ND5iimDx86SVrIUluLKK7RDXvwTmxX keB3YfP633AKBePD82LVsxQZlRaQoP3m+uyNyqZBd+jBNKMtwQgbV3YwCoa71i4Yx83P 8gpA== MIME-Version: 1.0 X-Received: by 10.52.16.105 with SMTP id f9mr21613482vdd.28.1373694828360; Fri, 12 Jul 2013 22:53:48 -0700 (PDT) In-Reply-To: References: Date: Sat, 13 Jul 2013 15:53:48 +1000 Subject: Re: GeoIP2 for retrieving city and region ? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373694836 news.xs4all.nl 15967 [2001:888:2000:d::a6]:42739 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50573 On Sat, Jul 13, 2013 at 3:48 PM, =CD=E9=EA=FC=EB=E1=F2 = wrote: > =D3=F4=E9=F2 13/7/2013 2:04 =F0=EC, =EF/=E7 Dennis Lee Bieber =DD=E3=F1= =E1=F8=E5: >> >> On Sat, 13 Jul 2013 02:47:38 +1000, Chris Angelico >> declaimed the following: >> >>> >>> Oh, and just for laughs, I tried a few of my recent mobile IP >>> addresses in the GeoIP lookup. All of them quoted Melbourne someplace, >>> some in the CBD and some out in the suburbs, but all vastly wrong, and >>> places I haven't been. But I'd never expect it to be accurate on >>> those. >>> >> Well... the MaxMind demo of "my IP" did get the proper >> metropolitan >> area... But they list the ISP as "AT&T"... My real ISP is Earthlink >> (piggybacking on AT&T DSL service). >> >> The Lat/Long, however shows as >> >> 42.9634 -85.6681 >> whereas a recent GPS readout shows >> 42.9159 -85.5541 >> >> or 2m50s too far north, and 6m50s too far west. >> >> Same website, accessed from my Blackberry phone, gave a result o= f >> "United States, NA" and location 38 -97 >> > > > I have read all your answer very carefully but i still need some way of > getting it done. > > All my Greek website visitors say they are from Europe/Athens which is th= e > ISP's location and not user's homeland. > > Well it worked for me but as many other told me it wasn't accurate for th= em > too. > > Please try this: http://www.maxmind.com/en/geoip_demo > > and tell me if maxmind's database can pippont you city's location. Nikos, you keep asking for a way to do the impossible. We keep telling you that it is impossible. No alternative technique will do what cannot be done! I just tried that on my two IPs and it was quite wrong on both of them - further wrong than some of the others have been. Stop expecting magic. ChrisA