Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.185 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.64; '*S*': 0.01; 'puts': 0.07; 'suddenly': 0.07; 'cc:addr:python-list': 0.11; '-tkc': 0.16; 'api,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'nearest': 0.16; 'remembered': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'alternate': 0.24; 'library,': 0.24; 'earlier': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'that.': 0.31; 'are.': 0.31; 'device': 0.34; 'subject:from': 0.34; "can't": 0.35; 'google': 0.35; 'are,': 0.36; 'done': 0.36; 'shows': 0.36; 'should': 0.36; 'wrong': 0.37; 'too': 0.37; 'ability': 0.39; 'major': 0.40; 'how': 0.40; 'mentioned': 0.61; 'new': 0.61; 'browser': 0.61; 'facebook': 0.61; 'address': 0.63; 'real': 0.63; 'such': 0.63; 'visit': 0.64; 'map': 0.64; 'different': 0.65; 'linked': 0.65; 'city': 0.66; 'past,': 0.68; 'money': 0.72; 'gps': 0.84; 'received:50.22': 0.84; 'subject:Location': 0.84; 'way)': 0.84; 'browsing': 0.91; 'have.': 0.93 Date: Sat, 6 Jul 2013 06:20:16 -0500 From: Tim Chase To: =?UTF-8?B?zp3Or866zr/Pgg==?= Gr33k Subject: Re: Geo Location extracted from visitors ip address In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: none Cc: python-list@python.org 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: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373109521 news.xs4all.nl 15940 [2001:888:2000:d::a6]:37964 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!feed.ac-versailles.fr!nerim.net!novso.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:50057 On 2013-07-06 11:41, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 Gr33k wrote: > you know when i go to maps.google.com its always find my exact city > of location and not just say Europe/Athens. >=20 > and twitter and facebook too both of them pinpoint my _exact_ > location. >=20 > How are they able to do it? We need the same way. A couple possibilities: 1) using the aforementioned HTML5 location API, your device may be tattling on where you are. Are you browsing from a smart-phone or other device with a GPS built in? 2) at some point in the distant past, you told Google where you are, and it has dutifully remembered that. Try using an alternate browser in a new session (Firefox has the ability to create a new profile; Chrome/Chromium should have the ability to start up with a virgin profile; I can't say for Safari or IE) and see if Google suddenly lacks the ability to locate you 3) Google has a better IP-to-location map database than you have. You might have to pay real money for such functionality. Or, you might have to use a different library, as the IP-to-location database that I linked you to earlier has both an "IP to Country" and an "IP to City" database. Note that this is often wrong or grossly inaccurate, as mentioned in other threads (geolocation by IP address often puts me in the nearest major city which is a good 45min drive away, and if I just visit Google maps with a fresh browser, it just shows me the state, TX, which is a ~13hr drive across, if done at 65mph the whole way) -tkc