| Reply | « Previous Thread | Next Thread » |
|
Is there a need for a PyS60 application, providing a geocode based upon the WiFi environment?
|
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
Please explain better your question. Do you want to get phone's position using Wi-Fi?
BR, Rafael T. |
|
* Scan WiFi environment, gather infos
* Lookup the found BSSIDs in the web * Get the geocode if available and present a map (optional) |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
Actually there is a way to retrieve GPS data and show it in a map (using Google Maps). For reading GPS data you should see this article on the Wiki. And for using Google Maps to display the current location, you can see this thread.
Hope it helps, Rafael. |
|
Hmm... You are missing my point. I also have written those kind of stuff (refer to http://foreverneilyoung.blogspot.com/). That wasn't the question at all. I just wanted to figure out, whether there is and interest for a WiFi based solution. Nobody talked about Google Map tiles (illegal) and GPS retrieval (simple).
Please don't respond if you don't have an opinion to the initial question. |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
I just interpreted your question differently. Now I understood what you want. I'm going to have a break now and after this I'll search for this and post it here if I find it. Sorry for the wrong answer and thanks for telling me using Google Maps is illegal (I didn't knew that). BR, Rafael. |
|
Sorry for beeing that rude... I'm a bit annoyed. So apologizes.
Regards |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
I am not sure such a kind of thing is feasible in pys60 but yes there is obviously a need for such kind of application. If anybody comes with such an application it will be great. Currently in pys60 we can get the location using two methods one is the cellid based and other is the GPS based. Cellid is not that much efficient and GPS is not universal but efficient so the WiFi positioning could be a next better option. Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
You are absolutely right.
The background is this: http://foreverneilyoung.blogspot.com...u-firefox.html And the preliminary, very first approach of the script is here: Code:
# This script is published under GPL (included below)
# (c) "Neil Young" (neil.young@freenet.de)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import httplib, urllib, e32, appuifw
def get_position():
d = appuifw.query(u"BSSID:", "text")
if d == None:
return
else:
bssid = d
req = "<?xml version='1.0'?> <LocationRQ xmlns='http://skyhookwireless.com/wps/2005' version='2.6' street-address-lookup='full'> <authentication version='2.0'> <simple> <username>beta</username> <realm>js.loki.com</realm> </simple> </authentication> <access-point> <mac>xxxxxxxxxxxx</mac> <signal-strength>-50</signal-strength> </access-point> </LocationRQ>"
headers = {"Content-type": "text/xml", "Connection": "close"}
conn = httplib.HTTPSConnection("api.skyhookwireless.com")
req = req.replace("xxxxxxxxxxxx", bssid)
conn.request("POST", "/wps2/location", req, headers)
resp = conn.getresponse()
answer = resp.read()
conn.close()
print answer
e32.ao_yield()
def quit(): #exit function
script_lock.signal()
appuifw.app.menu = [(u"Get Position", get_position)]
appuifw.app.exit_key_handler = quit
script_lock = e32.Ao_lock()
script_lock.wait()
The fact is: Yesterday I drove home from my company (Berlin), with a notebook running netstumbler, found ~330 WiFi networks on a distance of ~8 km (excluding Autobahn), resolved them using SkyhookWireless as described above (success rate 65%) and showed the points on a Google Map. Finally I could easily reconstruct my route... Isn't that scaring? Regards |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
Hey neil.young,
I wouldn't say scary, but interesting You made a cool piece of code already, maybe you can expand it to be a nice application with many features. Although WiFi positioning requires a lot of WiFi coverage since you'll be moving. Here in Brazil I can't use this, since we have few WiFi spots ![]() Keep going with this code! BR, Rafael.
Last edited by Rafael T. : 2008-10-25 at 23:34.
|
|
The scaring part is: I provide movement profile information to guys, I don't know... And: Nobody asked me for my allowance to map my hotspots (which are all resolvable... so the war drivers have already seen my equipment...)
Regards |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Quote:
I also believe that Wifi navigation support is going to be integrated into ... Now I have to stop, sorry I have no memos, no brochures, but for some reason I do believe I heard on Symbian Smartphone show that wifi support would be added into some well known mobile mapping sw.So: yes, there is need, there is interest, people are already doing it and it will continue and grow. The current navigation devices will look pretty poor in next few years. Cheers, --jouni |
|
Need some help: Could somebody please confirm the following strange monitoring? If using the script above with a _valid_ BSSID, this BSSID is resolvable using a WiFi connection. The same BSSID is _not_ resolvable using a GPRS connection.
I currently have no explanation, because it is _not_ the transport, what fails. The error is sent by skyhookwireless in the XML... Regards |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Nobody able to confirm? I have analyzed the requests leaving my phone, WiFi compared to GPRS. The differences are in the HTTP header, but I've put the GPRS header into my C# sample (running on PC) to no avail. Works.
But if it doesn't work over GPRS, I have to abandon the project. Please give it a try! |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Sorry for annoying you again. Here is the app for S60 3rd FP1:
http://maps.alphadex.de/datafiles/LocateMe_v1_0_1_unsigned_testrange.sis It includes the fine WLANTOOLS module from Christophe Berger http://www-rp.lip6.fr/~berger/pys60.html, so it is rather easy to install: Download, opensign with full caps, test. What does it do? It uses WLANTOOLS in order to scan your WiFi environment. After the scan it sends the gathered BSSIDs up to SkyHookWireless and asks for GeoCodes. If available, the codes are shown. I plan to add a function to show the GeoCode on a Google Map, but this is not done yet. Comments welcome, but I doubt, I'll get one... Regards |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| some questions about AGPS and Network based Positioning | eling0167 | Location Based Services and Navigation | 4 | 2008-11-03 12:42 |
| S60 3rd FP1 - Positioning Methods | phanoulis | Mobile Java Tools & SDKs | 2 | 2008-06-21 23:53 |
| Positioning Plugin - Location Acquisition API | gosuwachu | Symbian Networking & Messaging | 9 | 2008-02-20 08:31 |
| Same old story with positioning in 1.4.1 | neil.young | Python | 9 | 2007-11-04 21:26 |
| Positioning - N70 - Holux: Help please! | neil.young | Python | 0 | 2007-07-31 22:52 |