June 06, 2008 More about the Location feature in Mobile Web Server Posted by Jukka Eklund at 11:44 AM | Categories: Tips and tricks

One of the coolest things in Mobile Web Server 1.3 beta has to be the Location feature. It's a bit hidden down there in Presence application so chances are you haven't even noticed it yet.

By default Presence page shows just the coordinates if the phone location is found. It's fair to say that's not very intuitive but here we are leaving the innovation possibilities for developers and hobbyists. It's very easy to modify the default Presence page to have a link to any map or other service. Hint: the file is Web server\htdocs\Web_Applications\Presence\Viewer\index.psp. You can take a look at our demo device's Presence page, it has some examples on what to do with the location.

location_demo.jpg

If you don't feel like experimenting just start to use our Facebook application. It will translate your location into a map name and country, if you allow that. This way your friends can check out your live location roughly.

The location feature works in S60 devices that have the AGPS feature in software. This includes all the models that have internal GPS module. For some products such as N95 and E90 make sure you have the latest software for the device. Our current implementation only uses network-based location which can be hundreds of meters or even kilometers off depending on the cellular network structure. In our next release we will add an option to use also the GPS information if desired.

Bonus link: The Mobile Web Server brochure describes this and other possible future ideas. If you have new ideas, you know what to do :)

-Jukka

location_facebook.jpg


Permalink |

Comments

I really need to update my hardware; I'd like to play more with this aspect of the MWS.

How does the N96 work with MWS? I would assume no issues, but have there been any plusses?

Posted by: Antoine of MMM | June 7, 2008 06:13 AM

Antoine, it's too early to say anything definite about N96. We will officially support S60 3rd. Ed, FP2 in our next release.

Posted by: Jukka Eklund | June 7, 2008 03:04 PM

I've just discovered MWS.

I'm a linux user on the desktop.

WOW - I'm excited! It just does everything I want.
It's now on my must have list along with Fring.

How did I live without this? Is this the future of all phones?

Zero footprint on the desktop. Goodbye PC Suite.

Well done Jukka + Nokia.

Cheers
Phill.

Posted by: Phillb | June 8, 2008 03:34 PM

This stuff is wild, congratulations. I'm planning to cycle Lands End to John O Groats in July and would love to track the route with my N95 - for this reason it would be great stuff if you can transmit the GPS position using the phone web server software. Likely?

All the best,

Rob

Posted by: Rob | June 9, 2008 10:06 PM

A very nice update.

Posted by: Server | June 11, 2008 02:19 PM

Thanks all!

@Rob: the location is available in Presence page and in our REST API, so you can read them there (via browser or another service). For just tracking GPS info you might want to check out Sports Tracker as well.

Posted by: Jukka Eklund | June 14, 2008 03:46 PM

Sorry I wasn't that clear in my initial comment, apologies.

The location available in Presence page and via the REST API is the network based location, which isn't as accurate as the GPS location.

I have used sports tracker, but the advantage to using mws is I could build a mapping mashup website\facebook application which uses the REST API to read the gps location provided by mws. Using just sports tracker I would have to download\upload the GPS track at the end of everyday before I could map it in a web application. MWS with GPS location (not network based location) would allow me to build a live web mapping application.

All very good stuff.

Cheers, Rob.

Posted by: Rob | June 18, 2008 06:41 PM

Rob, just between us :) our next release will have GPS support as well. Keep us posted when you do that application, thanks!

Posted by: Jukka Eklund | June 19, 2008 10:24 AM

hello hey, ive tried and tried to get a location for my presence but to no prevail.
Please can i get some help on this.
Device Nokia N73, Network T-mobile US.
thx

Posted by: Joey | June 25, 2008 11:08 AM

Joey, like I wrote Location feature requires a device with AGPS feature and N73 is not one of them.

Posted by: Jukka Eklund | June 25, 2008 11:14 AM

Hi,

indeed very cool functionality. I´m wondering why it is network based (Cell Id?) accuracy, but needs GPS sight to provide location info?

cheers,

dietmar

Posted by: Dietmar | June 25, 2008 07:33 PM

Dietmar, it doesn't require GPS signal but requires AGPS functionality on the device. The feature itself works indoors or any place provided that cellular-id based positíon is found.

Posted by: Jukka Eklund | June 25, 2008 11:55 PM

It's really fun to play with location information!

One question though: How exactly is the "estimated accuracy" information to be interpreted?

You see, I put a marker on Google Maps at lat/lon and draw a circle around it to show the area that I'm probably in. Now, is "accuracy" the radius of this circle or the diameter?

Posted by: ossi1967 | June 26, 2008 03:24 PM

Ossi,

My understanding is A-GPS works by querying a Nokia web server that keeps a list of the locations of various mobile cell id's. So the AGPS function submits your cell id to the server and then compares to a nearby cell locations.

I suspect the accuracy of the result from the web server will depend on several factors, the density of the cell network, the frequency of update. I would suspect this would be most accurate in the city and less accurate in open areas with sparse coverage.

Just a best guess.

Rob

Posted by: Rob | June 26, 2008 03:54 PM

Rob,

thx for your reply. I understand that, at least I hope so ;)

My question was about something different:
If the device says the estimated accuracy is 96m (as in the first screenshot on top of the page), does this mean I'm in a circle with a 96m radius around the given coordinates or in a circle with a 96m diameter (which would be a much more accurate estimation)? It's important for me to know because I actually draw this circle on the map to visualize that I'm "in an area" rather than "at a position".

Posted by: ossi1967 | June 26, 2008 05:39 PM

I see; in which case I have no idea, one for Nokia ;-)

I'd be very surprised if you can map a circle with any really meaning, I'd have thought that 96m is an almost arbitrary function of the cell density?

Posted by: Rob | June 26, 2008 05:53 PM

I see; in which case I have no idea, one for Nokia ;-)

I'd be very surprised if you can map a circle with any really meaning, I'd have thought that 96m is an almost arbitrary function of the cell density?

Posted by: Rob | June 26, 2008 05:54 PM

Rob, ossi: The accuracy is the diameter of the circle.

Posted by: Jukka Eklund | June 27, 2008 09:55 AM

Rob, ossi: No, it is the radius. Sorry about the confusion!

Posted by: Jukka Eklund | July 1, 2008 10:28 AM

Jukka,

I got around to building a simple tracking application this weekend. It probably doesn't do much more that the Facebook application the MWS team has written, but it worked. Good to put theory into practice!

I have a demo website up and running here:

Mobile Phone Tracking with a Nokia N95

Unfortunately, due to the short battery lifespan of the N95, I don't have the web server and GPS switched on very often, but when all switched on it works a treat.

Rob

Posted by: Rob | July 6, 2008 09:29 PM

It does suck a lot of battery life, isnt it ?

Posted by: kerry | July 25, 2008 09:37 AM

@kerry: This feature or MWS in general? Asking for the location via MWS doesn't consume anymore battery life than using GPS or Maps in general.

Posted by: Jukka Eklund | August 12, 2008 09:41 AM


Post a comment







«Back to previous page