Posts Tagged ‘GPS’

i-gotU GT-600 GPS data logger review

Thursday, September 9th, 2010

The last time I reviewed a stand alone GPS data logger it was the GlobalSat DG-100, a functional but not very stylish box for recording GPS tracks.

The new i-gotU GT-600 GPS Travel & Sports Logger from Mobile Action (disclosure: they sent it to me for free) has the same SiRF Star III chipset as the DG-100, but it comes in a smaller and more attractive package.

i gotu gt 600 gps data logger 01

You’ll want a GPS data logger if you want to record your travel and sports tracks (walking, running, cycling, sailing, etc) and tag your photos with their GPS locations. Recording this GPS information will allow you to examine your route on the computer later on, and see exactly where you were when you took your photos.

i-gotU GT-600 hardware

The GPS measures just 46×41.5x14mm and weighs only 37g. It is made of shiny white plastic, and there is a soft plastic case around it (presumably to protect it if you drop it). Here is what the packaging looks like from the front and back.

i gotu gt 600 gps data logger 02

And this is what is inside the packaging. You get the GPS data logger, a USB cable, a velcro strap, and a mini install CD. If you have Windows 7 you won’t need the CD – you will have to download the software from their website.

i gotu gt 600 gps data logger 03

Here is a closer look at the sides of the unit. On one side is the cable connection, and on another there is a hole which you could use to attach a wrist strap.

i gotu gt 600 gps data logger 04

Here is the underside of the unit, the holes in the casing are there for you to feed the velcro strap through.

i gotu gt 600 gps data logger 05

The velcro strap allows you to attach the GPS unit to your rucksack, bike, boat, etc. Ideally you should have the unit positioned so that the front faces clear sky. Here is the unit strapped to my bike, ready for a cycle around the city.

i gotu gt 600 gps data logger 06

i-gotU GT-600 in use

There is only one button on the GT-600. Just hold it for a few seconds and a blue LED (under the plastic) will light up. You then need to wait for 30-60 seconds for it to get a lock on the satellites.

How long it takes depends on how many satellites are above visible from your current location, and also on cloud cover. In ideal circumstances it could get a lock in about 30 seconds. The time will also be reduced if it was on in the last few hours as it will still know the positions of some of the satellites. Once it has a lock then both the red and blue lights will start flashing.

Once it starts recording you can do whatever you want; Walk, run, cycle, sail, and it will log your position every 5 seconds. The unit is water resistant so it should be ok to use in the rain.

Remember to check the unit’s flashing lights regularly to make it is still recording. It can be very annoying if you get home and realise that only half your journey was recorded because a thick cloud or other GPS signal blocker stopped the unit from logging your GPS tracks.

The battery lasts about 30 hours if you log every 5 seconds (longer if you increase the logging interval) and is charged by the same USB cable that you use to transfer the GPS data.

The unit can store 262,000 way points (locations) so if it is logging every 5 seconds this will be enough for 363 hours GPS tracks. More than enough for most adventures!

To make the battery and memory go further it has a motion detector built in. If you are still for a while (perhaps you have stopped for lunch for example) it will stop recording. They claim that this will give you an extra 20% logging time.

Holding the button for a few seconds will turn the unit off. Because the button is easy to press I’d recommend that you don’t keep the unit in your back pocket. If you do you may well accidently turn it off when you sit down, or bend over. Either keep it strapped to your rucksack, bike, or clothing using the strap, or be careful to place it so that the button won’t be pressed. I find it works fine when put in the front pocket of my rucksack. The logging might now be quite as accurate as it would be if it had a view of the clear sky, but it is good enough.

To sync your data to your PC you just plug it in via the USB cable and start up the @trip PC software.

i gotu gt 600 gps data logger 07

i-gotU software

The i-gotU GT-600 GPS data logger comes with three pieces of software.

  • @trip PC – which is the software you’ll want to use if you want to manage your trips and geotag your photos.
  • Sports Analyzer – which shows your GPS tracks in a view that allows you to easily see average speed, calories burned, and when you did each of your activities.
  • Where I am – which simply shows you where you are now on a map.

I’ve mainly been using @trip PC. After importing the GPS tracks you have the option to create a ‘trip’. A trip can consist of one or more GPS tracks along with the associated photos. If you have synced multiple tracks you can go back and create new trips for the other tracks later on without having to sync again.

i gotu gt 600 gps data logger 09

You can choose which photos you want to include in the trip. When you’ve chosen them the software can add GPS location information into the image.

i gotu gt 600 gps data logger 10

After creating the trip you’ll get something a bit like this. It shows you the route you took, and the locations of all your photos. You can ‘play’ the trip and watch a moving icon go along your route. The photos you took will pop up as the icon reaches them.

i gotu gt 600 gps data logger 12

i gotu gt 600 gps data logger 13

You can customise the look of your trip. The view above is the basic view, and the one below is a sporty view which shows a graph of your speed and a few sporty facts about your trip such as total distance, and average speed.

i gotu gt 600 gps data logger 14

The @trip PC software is easy and quick to use for viewing your tracks and tagging your photos. The main thing it lacks is an sensible way to delete rogue way points (sometime you’ll want to manually clean up your tracks a bit). You can get a list of all way points, but when you have thousands of them it can take several minutes to find the one you want. The software should ideally let you select one or more way points by clicking on them to allow speedy moving or deletion.

In the version of the software I used (2010.06.09) there were some UI annoyances, and other problem such as slow syncing, and unreliable communication with the hardware – on my Windows 7 machine if you have done a sync, you can’t delete the data on the device unless you unplug and replug the device back in – you get a ‘Failed to clear log data. (Error=4)’. But you can work around all these issues.

If you are only interested in sports tracking and aren’t going to geotag any photos you can use the Sports Analyzer software instead. This is a simpler interface which just shows you your tracks along with speed, distance, calories burned etc.

sports analyzer

i-gotU GT-600 advanced configuration

Using the @trip PC software there are some advanced options you can configure. You can set the GPS unit to only record at certain times of the day. And you can set how frequently the unit logs your position.

i gotu gt 600 advanced options

Sharing your trip

If you don’t just want to keep your trip to yourself you can share it with just a few clicks. The @trip PC software can upload your tracks and photos to the @trip server. You have the option of uploading the photos to the @trip server (it will shrink the photos for you), flickr, or Picasa.

Your free @trip account only give you 100mb of space on the @trip server so I’d recommend creating a free Picasa account to your save your @trip account space for the GPS tracks. A Picasa account will give you 1024mb of photo space. Or if you already have a paid flickr account then that will be best as you can store unlimited photos there.

Here is the @trip interface showing some trips that I uploaded (one public, one private).

i gotu gt 600 gps data logger 17

Once uploaded to the @trip server you can view the trip in a flat Google Maps view, or by using a 3D Google Earth view – this will be great if you are recording your mountaineering, or hand gliding adventure.

i gotu gt 600 gps data logger 19

Rather than just looking at a static image of my @trip account your can have a look at the real thing showing a trip I made to Naoshima Island in Japan.

There is an option on the @trip server that allows you to embed a trip in your blog, such as I have done below.

Overall verdict of the i-gotU GT-600

This is a good GPS data logger with a long battery life, and large memory. The unit is small, easy to use, and has worked reliably during my two weeks of testing. The software makes it very simple to view your trips on your PC, geotag your photos, and share them all on the internet. I’m just hoping they release a software update to sort out the minor problems and bugs that I found.

Where to buy

If you are in the UK the GT-600 is available from this seller on Amazon, but last time I checked it was slightly cheaper from Maplin.

For more comprehensive information on where to buy the GT-600 around the world see Mobile Action’s – Where To Buy page.

Update: 15th September 2010 – @trip PC suite not loading issue

I started having a problem where @trip PC suite would not load (at all). But Sports Analyzer still loaded. I tracked it down to a corrupt sub folder in this resource directory – C:\Users\[username]\AppData\Roaming\Mobile Action\atrip\Resource. If you are having this same problem and want to try to track down which folder is corrupt.

  1. Backup the whole resource folder (C:\Users\[username]\AppData\Roaming\Mobile Action\atrip\Resource) so you can restore it later.
  2. Rename one of the sub folders in this directory and try restarting @trip PC. The corrupt one will probably be one of the ones you’ve edited most recently.
  3. Repeat until you find the corrupt one. You have found the corrupt one when @trip PC starts. However you’ll now see that in @trip PC all the trips belonging to the resource directories that you renamed have disappeared.
  4. Exit @trip PC.
  5. Now restore the whole resource folder from your backup, and then delete the corrupt sub folder.
  6. Restart @trip PC and you should have all your trips back (minus the corrupt one). You’ll have to recreate the corrupt trip if you want it back.

An extra bit of info if you are digging deeper: A list of the sub folders is stored in C:\Users\[username]\AppData\Roaming\Mobile Action\atrip\Resource\RESOURCE_INFO.INI. When you successfully manage to load @trip PC again it will delete the entries for the folders that you renamed. You need to restore from your backup (point 5 above) so @trip PC knows about the non-corrupt sub folders that you renamed.

GlobalSat DG-100 vs Nokia LD-3W GPS module review

Thursday, January 31st, 2008

For over two months now I’ve been the owner of two different GPS devices, and I’ve had plenty of time to thoroughly use them whilst on my London Underground tube walking project, so I thought it was about time I reviewed them.

Both are headless GPS units – in other words neither have a display. And both are based on the SiRFstar III chipset. This chipset features a 20 channel receiver, meaning that in theory it can lock onto 20 satellites at once. In reality you are unlikely to be in view of more than 10 satellites at any time.

One of the devices is the GlobalSat DG-100 GPS data logger, the other is the Nokia LD-3W bluetooth GPS module.

Nokia LD-3W GPS Module

Nokia LD-3W GPS Module

The first device I bought was the Nokia LD-3W. This is a very small unit, not much larger than a thick keyring. It is one button to turn the device on / off, and a socket to allow it to be charged. On its own this device is completely useless. To use it you need some bluetooth hardware and software to connect to it. I had bought it to use with my Nokia N80 smart phone . Nokia provide some really good free software that can connect to these kind of bluetooth GPS units.

Sports Tracker is an application for Nokia Series 60 (S60) based phones. It is produced by the Nokia Research Center. It will record your GPS tracks as you walk, drive, run or cycle. It has features to store your tracks and if you are into doing laps on a circuit it can keep track of your performance when you exercise. Stored tracks can be exported to your PC for analysis as GPX and KML. Your KML tracks can easily be overlayed onto Google Maps imagery so you can see where you have been. One cool feature is that as you are travelling you can see the track as a line on your phone display (but without a map underneath). You can also see statistics such as your speed, and you can see graphs of the data.

Nokia Sports Tracker S60 application - Track view Nokia Sports Tracker S60 application - Speed vs Distance graph

Nokia Maps is a free application that allows you to browse maps of many of the world’s countries. All the maps are free. They can downloaded on the fly if you have a fast data connection on your phone. This can be very slow so I’d recommend that you use the Nokia map downloader application to put whatever maps you want onto your phone’s memory card. The maps are fairly basic but this is a very useful tool if you are lost. Nokia Maps connects easily via bluetooth to the LD-3W.

Once the GPS signal has been acquired the LD-3W is good at keeping track of it. I’ve found that the unit can keep track of a good signal when the unit is in my rucksack, a car, train and even sometimes indoors. The big problem (which also affects the GlobalSat DG-100) is that it can take a while to acquire the initial signal when you first turn it on. If you try to acquire the signal whilst on the move then it can take ages – I’ve walked around for 10-20 minutes with the GPS units and not got any signal. I’ve found that to get the initial signal you really need to be stationary. What I now do is to place the unit on my window sill for a few minutes before I go out. This trick works well for both units. With the LD-3W you’ll need your bluetooth device nearby to initiate the GPS search.

In the box of the Nokia LD-3W is the GPS module and a car charger. Unfortunately there is no mains charger. It charges using the Nokia mini phone charger. Fortunately this is the same charger that came with my Nokia N80 so I was able to use that.

The box claims that the Nokia LD-W3 has up to 22 hours of operating time and I have no reason to doubt this. The problem is that you won’t be able to use the GPS module for this amount of time with a Nokia phone. Connecting to the GPS module by bluetooth burns the phone battery at a very fast rate. If you use it continuously you will probably get up to three hours of usage before your phone battery is used up. The GPS unit will keep going after this but it is useless without something to connect to it.

GlobalSat DG-100 GPS Data Logger

GlobalSat DG-100 GPS Data Logger

The GlobalSat DG-100 data logger is the second GPS device that I bought. I bought it when I realised that the N80 + LD-3W combination didn’t have enough battery power (the battery problem is with the N80) to be able to record a whole day’s walking route.

The DG-100 is a standalone data logger. When you turn it on it starts recording your positions. When you turn it off it stops. It doesn’t need to connect to any other device to be used. When you’ve done you days walking, running or driving you can connect it to your PC via its built in USB plug. You can then save the tracks in a variety of formats such as GPX and KML.

The supplied software is a bit weird but fortunately someone has written a better piece of software called DGManager that you can use to sync your tracks. DGManager will also allow you to GPS tag any photos that you have taken along your way. Below is an example of a track recorded with the DG-100 and then exported as KML using DGManager. The tracks from the Nokia LD-3W would look the same.


View Larger Map

The unit can be configured to record points at different intervals. It can store up to three different recording settings, which can be selected using a switch on the side. It can store a lot of tracks. The unit claims up to 60,000 waypoints which at the default recording setting of once point every 15 seconds would mean that it could store 250 hours of tracks.

The battery life is up to 30 hours. The unit charges via the USB port. It comes with two rechargeable AA batteries. This is good as it means that you can carry a spare set of standard AA batteries with you if the unit were ever to run out of power whilst you are on the move.

It is hard to find real fault with the DG-100. It is not the most amazing looking piece of kit but that doesn’t matter. The supplied software isn’t great but that doesn’t matter either as someone decided to write their own software – DGManager. It does its job and it does it well. You turn it on and once it has acquired the GPS signal you can leave it and go for a walk, cycle, etc. When you come back your tracks are ready for you on the device. If it has a good signal (i.e. on a clear day) you can even put it in a front pocket or a rucksack and it should still be able to keep the signal – but if you do this I do recommend you check it regularly to make sure it is still tracking.

Conclusion

As I’ve reviewed two different devices and you’d expect me to tell you which is best. The problem is that they both serve different purposes.

If you want a GPS module to allow you to look at maps on your Nokia phone then the Nokia LD-3W is a well suited. If you want to be able to record your tracks as you explore then go for the GlobalSat DG-100.

Nokia phones automatically tagging photos with cell ID

Tuesday, January 15th, 2008

I wonder how many people know that their Nokia phone may be automatically tagging all their photos with enough information to track where they go? – even if they don’t have GPS.

This is certainly the case if you have a Nokia N80 with Lifeblog installed. When the photos are synced to your PC so is the location information. It is easily viewable in the Lifeblog database.

To view this information in your Lifeblog database get the SQLite Database Browser from SourceForge. Fire it up and select the Lifeblog database which should be at \NokiaLifeblogData\DataBase_2\NokiaLifeblogDataBase.db3. I’d advise you to back up the database before you try this.

Locate the LbObjectXT table. This links the object id (i.e. the photo) to the place.

LbObjectXT table in the Nokia Lifeblog database

In the LbObjectFileReference table you’ll be able to turn the LbObjectID into something meaningful.

The LBPlace table then contains the information about the place. It has the MCC (country code), MNC (network code), LAC (local area code) and CellID.

LBPlace table in the Nokia Lifeblog database

This is enough information to pinpoint your photo to an area of less than half a mile square in built up areas. In less populated areas the accuracy may only be in the order of several miles.

Depending on how you feel about things this is either a really cool feature of your Nokia phone / Lifeblog or something you might worry about. If you take a lot of photos then it would be possible to work out roughly where you were each time you took a photo – if it were possible to convert the cell ids to co-ordinates.

There are several databases around which show you where the cell ids are located, however most are very incomplete. The best database is likely to be owned by Google – they currently have a database linking cell Ids to location which is populated by users of its Google Maps application. If they were ever to publicly release this database then it would be relatively easy to work out where all you photos were taken.

Open questions I have are:

  • Is this information only recorded if you have Lifeblog installed?
  • What other phones are recording your cell ids as you take photos?


Improved KML embedding of Google Maps into web pages

Sunday, December 23rd, 2007

I’ve been further improving the code that I described in my previous in my previous post – ‘Adding KML Google Maps overlays to WordPress posts‘.

I’ve made these changes:

  1. Option to specify a latitude / longitude / zoom for the map. This allows you to have one map and then show lots of different views of it
  2. The code is now implemented as a function rather than as included PHP. This means that the full map can be included in one line of PHP and the code only has to be included once in each page.

As before you can include a whole map which will be automatically centred and zoomed for you. The require_once is only needed once on each page, but no harm will come to you if it is included more than once. Only one argument is needed – the full URL to the KML file. A width / height can be included if you want.

<?php
require_once('../data/071223/mapiframe.php');
iframe("https://www.reviewmylife.co.uk/data/071223/track.kml");
?>

In the require_once you can either include an absolute path or a relative path.


View Larger Map
The new options allow you to specify the latitude, longitude and zoom values. When you specify these values you also have to specify the width / height of the map. The argument list is:

  1. Full URL of KML – note this is the full URL not a relative one
  2. Width of map – in pixels
  3. Height of map – in pixels
  4. Latitude
  5. Longitude
  6. Zoom
<?php
require_once('../data/071223/mapiframe.php');
iframe("https://www.reviewmylife.co.uk/data/071223/track.kml",
	450, 400, "51.515339", "-0.054374", 15);
?>


View Larger Map
To get the latitude / longitude / zoom values view your KML file in Google Maps. Click on ‘Link to this page’ as described in the previous post. Alter the zoom and position of the map so it shows that you want. Then copy the latitude / longitude / zoom values from the HTML box. The latitude / longitude are the values in the ‘ll’ parameter (latitude is first). The zoom is the ‘z’ parameter.

So if we are looking at the following page in Google Maps.

Getting latitude, longitude, and zoom values from Google Maps

The latitude is 51.49966, the longitude is -0.053108 and the zoom is 16.

Here are the three files you’ll need.

MapIframe.php
LoadMap.php
GoogleMapLoader.js

You can see a demonstration of these scripts at www.londonphotoproject.co.uk/blog/. Here I have one KML file for my whole walking route, but I include multiple zoomed-in views of the map so I can describe the route in small sections.

For these scripts to work they’ll need to be interpreted as PHP4 rather than PHP5. If your web host is interpreting PHP files as PHP5 by default (which more and more of them are) simply put these PHP files in a separate directory and add a .htaccess with the following contents to that same directory.

# Treat files in this directory as PHP4
AddType x-mapp-php4 .php


Adding KML Google Maps overlays to WordPress posts

Thursday, December 20th, 2007

Embedding basic KML Maps into your blog post

There is an easy way to include Google Maps KML overlays in your WordPress blog if you are willing to have all the size and style information hardcoded into each post. All you have to do is to go to http://maps.google.co.uk/ type the KML location into the search box and then click on ‘Link to this page’.

Embedding KML into your WordPress blog using Google Maps

You can then add the HTML into your blog post by copy / pasting it from the second text box.

HTML for embedding Google Maps in a WordPress blog post

Google make it easy to change simple settings such as the map size by following the ‘Customise…’ link. Below is what the actual embedded map would look like. Handily the map is automatically zoomed into whatever data is in your KML file – In this example we’re looking at a walking track across London.


View Larger Map

This is great for if you want to add the odd maps to your blog, or if you don’t believe you’ll need to alter the style later on. The problem comes if you want to separate all the style information out of the embedded map iframe.

The problem with the Google Maps HTML generator

Imagine if you had a site with dozens or even hundreds of embedded KML files. One day in the future you decide that you want to change the style and look of all the maps. Maybe you want to change the size, add some extra links under each map, or add new features from the Google Maps API to each map. Below is what the actual HTML code embedding this KML file looks like. As you can see it is pretty ugly and it wouldn’t be fun to edit dozens / hundreds of these to change the way they look.

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=http:%2F%2Fwww.reviewmylife.co.uk%2Fdata%2F071220%2Ftrack_east_london.kml&amp;ie=UTF8&amp;ll=51.497414,-0.054315&amp;spn=0.044967,0.044325&amp;om=0&amp;output=embed&amp;s=AARTsJozG9M05ndgSB8zlZU1Qavi7qH_cw"></iframe><br /><small><a href="http://maps.google.co.uk/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=http:%2F%2Fwww.reviewmylife.co.uk%2Fdata%2F071220%2Ftrack_east_london.kml&amp;ie=UTF8&amp;ll=51.497414,-0.054315&amp;spn=0.044967,0.044325&amp;om=0&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>

Under normal circumstances it would be easy to separate out this code into a different file and pass in the KML file URL as a parameter. The problem is that Google have added a security parameter to the argument list (s=AARTsJozG9M05ndgSB8zlZU1Qavi7qH_cw in this case) which locks in the KML URL. You can edit the style parameters (width / height etc) but you can’t change the URL. If you do you get an error saying “Forbidden Your client does not have permission to get URL…”. Google have done this so they can keep a track of how much load individual sites are putting on their server. Unfortunately it means that if you want to use a new KML you have to use the Google Maps site to generate the HTML.

A solution and another problem for WordPress bloggers

There is a way around this, and that is to use the Google Maps API. This will allow you to programatically include as many KMLs as you want without using Google’s HTML generator. To use the API you have to sign up for a Google Maps API Key. There is one final problem – each key can only be used from one individual web directory. This can be a big problem if you are a WordPress user. Bill from the techrageo blog has already written about this so I won’t repeat what he has said. You can read his blog and look at his solution for yourself.

There are however some problems with his solution.

  1. You would need to create a new HTML file for each Google Map you are embedding.
  2. The width and height of the iframe have to be embedded in each map in each blog post or HTML page that you use it on.
  3. The JavaScript in his solution doesn’t quite do what I want.

Here is my solution which is inspired by his but solves these three issues. Please note that as with Bill’s solution this will require some programming knowledge. You will need to make modifications to my scripts to get them to work on your site.

To embed a KML file with my solution all you have to do is include a small section of PHP in your blog post. To allow me to embed PHP in my blog posts I’ve installed the Exec-PHP plugin. This is what the PHP looks like.

<?php
$mapxml="https://www.reviewmylife.co.uk/mymap.kml";
require('../data/kml/mapiframe.php');
?>

You must set the $mapxml variable which points to your KML file – it has to be the full URL, not a relative one. You then load the mapiframe.php file with the ‘require’ command. Optionally you can set a $width and a $height variable for the width/height in pixels, but this will re-introduce problem number 2. If you don’t set these values then default sizes (which you can change) will be used.

Embedding the KML with this PHP means that your blog posts now don’t contain any formatting infomation for the maps. All the formatting can be controlled from the following common scripts.

This is what your mapiframe.php looks like, it contains the common iframe information. You will probably need to fix the link to the loadmap.php file for your own web server.

<?php
/*
Include a KML on WordPress Blog
See www.reviewmylife.co.uk for details.
*/
if (!isset($mapxml))
	{
	print "ERROR: Missing mapxml";
	exit;
	}
if (!isset($width))
	{
	$width = "450";
	}
if (!isset($height))
	{
	$height = "450";
	}
$mapxml = urlencode($mapxml);
$widthparam="width=$width";
$heightparam="height=$height";
print <<<ENDHTML
<iframe width="$width" height="$height" scrolling="no"
frameborder="0" marginheight="0" marginwidth="0"
src="/data/kml/loadmap.php?mapxml=$mapxml&amp;$widthparam&amp;$heightparam">
If you see this, your browser doesn't support iframes.
Please upgrade to a more recent browser.</iframe><br /><small>
<a href="http://maps.google.co.uk/maps?f=q&amp;hl=en&amp;q=$mapxml&amp;ie=UTF8&amp;om=1&amp;source=embed"
style="color:#0000FF;text-align:left">View Larger Map</a></small>
ENDHTML
?>

Here is the code for loadmap.php. You’ll need to replace the Google Maps API key with your own one.

<?php
/*
Include a KML on WordPress Blog
See www.reviewmylife.co.uk for details.
Remember to replace the Google API key with your
own one or this script won't work!
*/
if (!isset($mapxml))
	{
	print "ERROR: Missing mapxml";
	exit;
	}
if (!isset($width))
	{
	$width = "450";
	}
if (!isset($height))
	{
	$height = "450";
	}
print <<<ENDHTML
<html>
<head>
  <title>Google Map Loader - $mapxml</title>
  <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA6Y9TsXMv7cdqyP8VLw2boRSTFKCAindh81v9qdSRu-QtalZoMBQj6TDiTZizmDy7aoJTqU6iO3pDOQ" type="text/javascript"></script>
  <script src="googlemaploader.js"></script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map" style="width:$width; height:$height"></div>
<span id="mapxml" name="$mapxml"></span>
<script type="text/javascript">
 function initialize() {
  if (GBrowserIsCompatible()){
   LoadGoogleMap();
   }
  }
</script>
</body>
</html>
ENDHTML
?>

This is the googlemaploader.js file which loads the KML using the Google Maps API. It correctly sets the viewport in the map view and adds a few controls to the map.

// Script to load and position a KML/XML Google Map
// See www.reviewmylife.co.uk for details.
var kml;
function LoadGoogleMap(){
  // Find mapinfo span and get name attribute
  var mapxml = document.getElementById('mapxml').getAttribute('name');
  kml = new GGeoXml(mapxml, PositionMapCallback);
}
function PositionMapCallback(){
  var map = new GMap2(document.getElementById("map"));
  map.addControl(new GSmallMapControl());
  map.addControl(new GMapTypeControl());
  kml.gotoDefaultViewport(map);
  map.addOverlay(kml);
}

This is the final result. Yes it looks very similar to the one generated by the Google Maps HTML generator. But if I ever need to change all my embedded maps it will be really easy for me.


View Larger Map
Here are some download links for the three files you need.

MapIframe.php
LoadMap.php
GoogleMapLoader.js

You’ll need to change the Google API key in loadmap.php. You’ll also need to fix the inter-file references so all the scripts reference each other correctly. All three scripts should be placed in the directory that you created the Google API key for.

Update: Make sure you check out my Improved KML embedding of Google Maps into web pages post for some updates to these scripts.

Installing Nokia Maps on a Nokia N80

Tuesday, October 16th, 2007

I recently bought a Nokia LD-W3 external bluetooth GPS unit that is working well when used with Nokia’s Sport Tracker application. It allows you to record your tracks that can later be overlaid onto Google Maps. It doesn’t however have a built in map so you can see where you are.

I wanted a mapping application so that I could navigate using the GPS unit. Nokia have an application for Series 60 phones called ‘Nokia Maps’. Even though the Nokia N80 is not listed as one of the compatible phones I’ve found out that if you just download the N73 version it will work fine on the N80.

Maps are retrieved from a server and stored on your phone. Nokia Maps works best (and won’t incur any call charges) if you download the maps that you need offline using the Nokia Map Loader application. The maps can be quite large, England is 114mb.

The Nokia Maps page says that you can connect your GPS receiver via bluetooth. Unfortunately it doesn’t tell you how to do it. The information is in the FAQ. The trick is to press ‘0’. Obviously. Once it is connected to the GPS ‘0’ will take you straight to your current location. As you move around you will see where you are on the map in real time as you would with a car GPS.

You can use Sport Tracker and Nokia Maps at the same time if you start Sport Tracker first and then Nokia Maps.

This is an essential download if you have a Series 60 phone and a GPS unit.

Linking photos to locations

Saturday, September 22nd, 2007

I’ve wanted to be able to GPS tag my photos for a while now so I know where they have been taken. This will be great for when I go on walks around the city. The first thing I need to do this is a GPS module. I did some research into GPS modules which can connect to my Series 60 phone – a Nokia N80. To connect to the phone it the module needs to be bluetooth enabled and support the NMEA protocol. NMEA is a standard protocol which allows GPS information to be retrieved. There are several pieces of software for the phone which can then record the co-ordinates as you move. One of these pieces of software is the free Sport Tracker written by Nokia’s Research Center.

Sport Tracker can record your tracks as you walk, run, drive, etc. It can then export the data as KML files (which can then be overlaid onto Google Maps) or as GPX data which contains the co-ordinates and the time codes.

The module I decided on was the Nokia LD-3W Wireless GPS Module from Amazon which when I bought it cost around £50. It arrived a few days ago and so far the results are very promising. The GPS module and the phone connect seamlessly. It is able to acquire the satellite signals relatively quickly – about 30 seconds to a minute when it is started. Once it has aquired the sattelites then you can walk around at will and it will record where you are going.

You can read my review of the Nokia LD-3W here.