From owner-freebsd-chromium@FreeBSD.ORG Thu Dec 6 06:05:05 2012 Return-Path: Delivered-To: freebsd-chromium@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0C4E91A6D for ; Thu, 6 Dec 2012 06:05:05 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from mho-02-ewr.mailhop.org (mho-04-ewr.mailhop.org [204.13.248.74]) by mx1.freebsd.org (Postfix) with ESMTP id AD7668FC08 for ; Thu, 6 Dec 2012 06:05:04 +0000 (UTC) Received: from pool-151-203-201-84.bos.east.verizon.net ([151.203.201.84] helo=homobox.opal.com) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TgULE-0002FO-Mt for freebsd-chromium@freebsd.org; Thu, 06 Dec 2012 05:49:48 +0000 Received: from shibato (shibato.opal.com [IPv6:2001:470:8cb8:4:221:63ff:fe5a:c9a7]) (authenticated bits=0) by homobox.opal.com (8.14.4/8.14.4) with ESMTP id qB65njrN048030 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 6 Dec 2012 00:49:46 -0500 (EST) (envelope-from fbsd@opal.com) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 151.203.201.84 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18qNj9LKsWVEKtenBA5jeRU Date: Thu, 6 Dec 2012 00:49:45 -0500 From: "J.R. Oldroyd" To: freebsd-chromium@freebsd.org Subject: WIP: Wi-fi Geolocation Provider Message-ID: <20121206004945.7ec2a1f1@shibato> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (homobox.opal.com [IPv6:2001:470:8cb8:4::1]); Thu, 06 Dec 2012 00:49:46 -0500 (EST) X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD shortcircuit=no autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on homobox.opal.com X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 06:05:05 -0000 It seems that Google's Geolocation Service lookups done using an IPv6 address results in a location that is far, far, far away from where you really are, and even lookups using IPv4 addresses are often several km off. Since I am increasingly running into web pages that want to "help me better" based on my location, it seems a more accurate lookup is needed. So... I have knocked together a wifi_data_provider_freebsd.cc that gets your list of wi-fi APs so that the geolocation lookup can be done using the wi-fi AP information. The wi-fi AP code was tested and works as a stand-alone program. Now, I am not really a C++ guy and I am far from up-to-speed on chromium's object methods and how to hook this in so the browser actually finds and uses it. I could use some help with that. I've put what I have so far, and some additional details, here: http://opal.com/jr/freebsd/ports/www/chromium/files/ Anyone who cares to help integrate this into chromium, feel free to grab the files from that page, and figure out what I've missed with getting this properly hooked in. Please email me with any improvements you can offer. -jr