Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.063 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'assign': 0.07; '??,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'api': 0.11; 'adapter': 0.16; 'benjamin': 0.16; 'message-id:@4ax.com': 0.16; 'opposite': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'strength': 0.16; 'wifi': 0.16; 'subject: ?': 0.16; '(but': 0.19; 'machine': 0.22; 'network,': 0.22; 'url:home': 0.24; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.27; 'idea': 0.28; '(this': 0.29; 'possibility': 0.29; 'blackberry': 0.30; 'mode': 0.30; '(which': 0.31; 'are.': 0.31; 'probably': 0.32; 'run': 0.32; 'running': 0.33; 'device': 0.34; 'connection': 0.35; 'knows': 0.35; 'something': 0.35; 'case,': 0.35; 'but': 0.35; 'accessing': 0.36; 'are,': 0.36; 'combination': 0.36; 'doing': 0.36; 'charset:us-ascii': 0.36; 'application': 0.37; 'implement': 0.38; 'received:76': 0.38; 'to:addr:python- list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'how': 0.40; 'company': 0.60; "google's": 0.60; 'phones': 0.60; 'signal': 0.60; "you're": 0.61; 'information': 0.63; 'connecting': 0.64; 'map': 0.64; 'telling': 0.64; 'provide': 0.64; 'different': 0.65; 'within': 0.65; 'phone': 0.66; 'services.': 0.70; 'jul': 0.74; 'cars': 0.84; "don't...": 0.84; 'done:': 0.84; 'tower,': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: GeoIP2 for retrieving city and region ? Date: Mon, 15 Jul 2013 20:34:52 -0400 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-24-177.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373934908 news.xs4all.nl 15977 [2001:888:2000:d::a6]:33589 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50721 On Mon, 15 Jul 2013 16:25:09 +0300, ??????? declaimed the following: >???? 13/7/2013 9:17 ??, ?/? Benjamin Kaplan ??????: >> >> It's not telling you where your ISP is headquartered. It's telling you >> where the servers that you're connecting to are. In your case, you're >> connecting to servers that your Athens-based ISP has in a Thessaloniki >> datacenter. The only way to get an accurate location is to use >> something other than IP- phones like to use a combination of their >> GPS, a map of the cell phone towers, and a map of wi-fi hotspots (this >> is one of the things that Google's StreetView cars log as they drive). > > >I have no idea how to implement the solution you proposed. >These are nice ideas we need to have a way of implement them within a >script. > >I have no way of grasping a map of cell towers of a map of wi-fi hotspots. > You don't... The phone company knows where their towers are, THEY do the triangulation based on signal strength from cell phones on their network, and they provide that position to the phone. The phone can then use that data to respond to applications running ON the phone that request location information using the phone's OS API (which is different for an Android phone vs Blackberry vs Apple). WiFi hotspots would require an application running on the mobile device accessing some database of hotspots; so the application can do the triangulation based upon the signal strength it is receiving from the hotspots (this is the opposite of how the phone location is done: phone company uses signal strength to assign the control tower, so they can do the triangulation at their end; WiFi would be triangulated on the mobile as it is doing the decision of which hotspot to connect through). In either case, it still comes down to relying on the client machine for location services. A desktop machine with a wired connection is not going to be running location services. A mobile device using WiFi is also likely to NOT be running a location service -- but has the possibility of having an application loaded and run which does access a WiFi database to do triangulation (but this application probably has to run in Administrator mode as it would need to access the WiFi adapter to scan for hotspots and signal strengths). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/