July 2008 Archives

GPX Route Map Technical Details

| | Comments (0)

This page describes the procedures used to record and process a series of Garmin GPX files for display online as a Google Map, or as a detailed report that displays a GPX file in the form of graphs and useful statistics.

In March 2008, I joined a Dragoman truck to embark on an Overland journey from the UK to St Petersburg, via Central Asia, China, Mongolia, and Kazakhstan. (See the full route here.) Starting in Istanbul, and continuing every driving day since then, I have been recording the route that the Dragoman truck has taken, using my Garmin GPSmap60Cx GPS receiver. This model of GPS receiver has a removable microSD card that can be used to store tracks. The GPS receiver comes with a 64MB card, but I exchanged this for a 1GB card, in order to have plenty of room to store the daily files. Is that big enough? Yes - the files take up very little space on the card - typically 120 bytes per trackpoint. That's approximately 8.3 million trackpoints on a 1GB card. In other words, if you are recording at the rate of 1 per second, 24 hours a day, it would take 96 days to fill up! I estimate to have generated about 20MB of data for the whole 6 month journey.

To get the GPSmap 60cx receiver to store a daily file of constantly updated positions, find the 'Tracks' page, and notice that there is a dot next to 'Off'. Use the Rocker Key to highlight the word 'On', then press 'Enter' to move the dot to there. You are now recording all your moves, and will continue to do so until you change the setting back to 'Off'. As well as storing positions in a file called the 'Active Tracklog', which we will ignore for the moment, the GPS also stores positions in a daily file, which will be named something like '20080327.gpx' i.e. YYYYMMDD. This is created and named automatically, and can be downloaded to your computer for processing. Whilst you can remove the microSD card from the GPS and put it in a card-reader to see the files, it is a lot easier just to access the data via a USB link. Plug your GPS receiver into your computer's USB port, turn the GPS on, and click Main Menu > Setup > Interface. Select the bottom button marked 'USB Mass Storage'. The computer will then alert you that a new Drive has been detected - use 'My Computer' or 'Windows Explorer' to locate the drive, which will contain the .gpx files that you have generated so far. Copy these to a new folder on your computer's hard drive, then eject the GPS using the 'Safely Remove Hardware' button in the System Tray, and turn off the GPS.

There are a number of ways to produce an online map of your stored GPX files. The following Web sites allow you to plot your GPX data on a Web map:

GPS - GPX Interactive Map (View GPX files on Google Maps)

GPX Loader for Google Maps (View GPX files on Google Maps)

GPS Planner (for routes)

GPS Visualizer (Convert GPX to SVG maps and elevation profiles)

GMapToGPX (View GPX files on Google Maps)

Innersource (View GPX files on Google Maps)

Marengo GPS Route Planner (View GPX files on Google Maps)

Online GPX Viewer (View GPX files on Google Maps)

Track Viewer (View GPX files on Google Maps)

However, if you want to display a map on your own website, already formatted with all the details of your track, you will need some software that can create it. First of all, you must sign up for a Google Map API. This authorises you to embed Google Maps in your own web pages with JavaScript, and provides a unique API password that you will need for each map. Note that the API applies to just ONE FOLDER on your website. You have to specify the address of the folder when you sign up for the API - for instance: http://www.mysite.com/webmaps/ All the maps that you authorise with the API code MUST be in that folder.

Next, the software. There are various programs that can be used to create the map code. I use RoboGEO, a program primarily designed to geo-reference photographs (more about doing that here). One of its other many abilities is to produce a Google map page showing the location of each photo. You can also add a track on the map, which is what we are interested in here. I simply omit to upload any photos, but make sure the Tracklog is displayed when creating the webpage. To do this, follow these steps:

  1. Start the 'RoboGeo' program
  2. Click File > Get Locations > Tracklog > Import Tracklog file
  3. Select the required file - when it is imported, the total number of points will be displayed
  4. Click File > Export > Google Maps
  5. Paste your API code to the 'Google Key' box
  6. Set the Webpage Title to '20081231' or similar
  7. Set the View to 'Map'
  8. Check the box 'Include the GPS Tracklog on the Map'
  9. Set the 'Approx max number of polylines to create' to a value greater than the total points in your file
  10. Click 'Create Google Map', and save it in a folder with the same name as the Title
  11. Upload the map.htm and map.xml files to your server, and view the map online in a web-browser

To view the maps I've already generated, click on the links below. The map will initially load as a standard roadmap, but you can also select a Satellite view, or a hybrid view of the two, using the buttons in the top right of the screen. The amount of detail that the Satellite view will provide depends on Google's current satellite photos for that area. In the countryside this might just show a general view that identifies built-up and rural areas, whilst in bigger cities you can often zoom in to see individual buildings, and decide which exit we took from a carpark, or even where we parked in that carpark! The detail can be astonishing. You can click-and-drag to move the map around, and zoom in and out using the +/- slider on the left of the screen. Note that Google provides no maps for Georgia or Azerbiajan (why not?), and the western parts of China are similarly blank, so you will have to use the satellite photos instead.

To create the detailed Route-Reports, I use the online uTrack report generator at http://utrack.crempa.net This page will upload a GPX file from your computer and produce a detailed Route-Report that shows a number of graphs and statistics, such as:

  • Elevation profile graph - elevation plotted against distance.
  • Elevation profile graph - elevation plotted against time.
  • Elevation statistics: Minimum elevation, Maximum elevation, Average elevation, Maximum difference, Total climbing, Total descent, Start elevation, End elevation, and Final balance.
  • Speed profile graph - speed plotted against distance.
  • Speed profile graph - speed plotted against time.
  • Speed statistics: Minimum speed, Maximum speed, Average climbing speed, Average descent speed, Average flat speed, and Average speed.
  • Time statistics: Date of track, Start time, End time, Total track time, Climbing time, Descent time, and Flat time.
  • Distance profile graph - distance plotted against time.
  • Distance statistics: Total flat distance, Total real distance, Climbing distance, Descent distance, and Flat distance.

Once the report has been generated, an option is presented to save it as a PDF file, which can later be uploaded to your server. To view the Reports I have generated so far, click on the links below. You will need a PDF reader installed on your computer to read PDF files - suitable software is available free from Adobe. Some errors still exist - for instance, when the satellite signal is lost when we drive through a tunnel, the altitude can have unexpected results. When I have more time, I will try and edit these files to remove such glitches, but for now, whilst I am 'on the road', these reports will at least give you an idea of what we have been doing.

The table below contains links and details of all the maps and reports generated so far:

DateCountryRoute NotesRoute MapRoute Report
March 27th 2008TurkeyIstanbul - AnkaraMap Report
March 28th 2008TurkeyAnkara - NevsehirMap Report
March 30th 2008TurkeyNevsehir - RefahiyeMap Report
March 31st 2008TurkeyRefahiye - Sumela MonasteryMap Report
April 02nd 2008Turkey/GeorgiaSumela Monastery - BatumiMap Report
April 03rd 2008GeorgiaBatumi - KutaisiMap Report
April 04th 2008GeorgiaKutaisi - KazbegiMap Report
April 05th 2008GeorgiaTrekking at KazbegiMap Report
April 06th 2008GeorgiaM27 - TbilisiMap Report
April 09th 2008GeorgiaTbilisi - TelaviMap Report
DateCountryRoute NotesRoute MapRoute Report
April 10th 2008GeorgiaTelavi - N41.50 E046.03Map Report
April 11th 2008GeorgiaN41.50 E046.03 - N41.06 E047.17Map Report
April 12th 2008GeorgiaN41.06 E047.17 - LaihicMap Report
April 13th 2008GeorgiaLaihic - BakuMap Report
April 16th 2008TurkmenistanAround TurkmenbashiMap Report
April 17th 2008TurkmenistanTurkmenbashi - YaradzhyMap Report
April 18th 2008TurkmenistanYaradzhy - AshgabatMap Report
April 20th 2008TurkmenistanAshgabat - DarvazaMap Report
April 21st 2008TurkmenistanDarvaza - N41.46 E059.35Map Report
April 22nd 2008Turkmen/UzbekN41.46 E059.35 - KhivaMap Report
DateCountryRoute NotesRoute MapRoute Report
April 24th 2008UzbekistanKhiva - BukharaMap Report
April 27th 2008UzbekistanBukhara - N40.57 E065.35Map Report
April 28th 2008UzbekistanN40.57 E065.35 - N40.01 E066.35Map Report
April 29th 2008UzbekistanN40.01 E066.35 - SamarkandMap Report
May 01st 2008UzbekistanSamarkand - TashkentMap Report
May 04th 2008UzbekistanTashkent - FerganaMap Report
May 05th 2008Uzbek/KyrgyzFergana - UzgenMap Report
May 06th 2008KyrgyzstanUzgen - Toktogul LakeMap Report
May 07th 2008KyrgyzstanToktogul Lake - N42.05 E074.08Map Report
May 08th 2008KyrgyzstanN42.05 E074.08 - N41.49 E074.31Map Report
DateCountryRoute NotesRoute MapRoute Report
May 09th 2008KyrgyzstanN41.49 E074.31 - KochkorkaMap Report
May 10th 2008KyrgyzstanKochkorka - Issyk-Kul LakeMap Report
May 11th 2008KyrgyzstanIssyk-Kul Lake - KarakolMap Report
May 12th 2008KyrgyzstanKarakol - Sarycat ErtasMap Report
May 13th 2008KyrgyzstanTrekking at Sarycat ErtasMap Report
May 14th 2008KyrgyzstanSarycat Ertas - Cholpon AtaMap Report
May 15th 2008KyrgyzstanCholpon Ata - Ala Archa CanyonMap Report
May 16th 2008KyrgyzstanTrekking in Ala Archa CanyonMap Report
May 17th 2008KyrgyzstanAla Archa Canyon - BishkekMap Report
May 19th 2008KyrgyzstanBishkek - NarynMap Report
DateCountryRoute NotesRoute MapRoute Report
May 20th 2008KyrgyzstanNaryn - N40.43 E075.05Map Report
May 21st 2008Kyrgyz/ChinaN40.43 E075.05 - KashgarMap Report
May 22nd 2008ChinaKashgar - TashkurganMap Report
May 23rd 2008ChinaTashkurgan - KashgarMap Report
May 27th 2008ChinaKashgar - N37.14 E079.01Map Report
May 28th 2008ChinaN37.14 E079.01 - MinfengMap Report
May 29th 2008ChinaMinfeng - N41.44 E085.03Map Report
May 30th 2008ChinaN41.44 E085.03 - TurpanMap Report
May 31st 2008ChinaSightseeing around TurpanMap Report
June 01st 2008ChinaSightseeing around TurpanMap Report
DateCountryRoute NotesRoute MapRoute Report
June 02nd 2008ChinaTurpan - LiaodunMap Report
June 03rd 2008ChinaLiaodun - Mogao CavesMap Report
June 04th 2008ChinaMogao Caves - DunhuangMap Report
June 05th 2008ChinaDunhuang - JiayuguanMap Report
June 06th 2008ChinaSightseeing around JiayuguanMap Report
June 07th 2008ChinaJiayuguan - ShandanMap Report
June 08th 2008ChinaShandan - N36.59 E103.08Map Report
June 09th 2008ChinaN36.59 E103.08 - LiujiaxiaMap Report
June 10th 2008ChinaLiujiaxia and the Bingling CavesMap Report
June 11th 2008ChinaLiujiaxia - LanzhouMap Report
DateCountryRoute NotesRoute MapRoute Report
June 12th 2008ChinaLanzhou - PinliangMap Report
June 13th 2008ChinaPinliang - Kongtong ShanMap Report
June 14th 2008ChinaPinliang - XianMap Report
June 16th 2008ChinaXian - Terracotta WarriorsMap Report
June 17th 2008ChinaWalking on Xian city wallsMap Report
June 18th 2008ChinaXian - PingliangMap Report
June 20th 2008ChinaPingliang - ZhongweiMap Report
June 21st 2008ChinaZhongwei - YinchuanMap Report
June 22nd 2008ChinaYinchuan - SalaqiMap Report
June 23rd 2008ChinaSalaqi - DatongMap Report
DateCountryRoute NotesRoute MapRoute Report
June 24th 2008ChinaSightseeing around DatongMap Report
June 25th 2008ChinaDatong - ChengdeMap Report
June 27th 2008ChinaGreat Wall at JinshanlingMap Report
June 28th 2008ChinaChengde - Zunhua tombsMap Report
June 29th 2008ChinaExploring the Zunhua tombsMap Report
June 30th 2008ChinaZunhua tombs - BeijingMap Report

Then, after a break in Beijing...

DateCountryRoute NotesRoute MapRoute Report
July 14th 2008ChinaBeijing to Great Wall and Ming TombsMap Report
July 15th 2008ChinaBeijing to Datong by trainMap Report
July 16th 2008ChinaDatong - ErenhotMap Report
July 17th 2008China/MongoliaErenhot - Zamyn UudMap Report
July 18th 2008MongoliaZamyn Uud - N43.29 E109.36Map Report
July 19th 2008MongoliaN43.29 E109.36 - N43.03 E106.51Map Report
July 20th 2008MongoliaN43.03 E106.51 - N43.30 E104.48Map Report
July 21st 2008MongoliaN43.30 E104.48 - N43.46 E104.04Map Report
July 22nd 2008MongoliaN43.46 E104.04 - Yolyn AmMap Report
July 23rd 2008MongoliaYolyn Am - Mayhan TolgoyMap Report
DateCountryRoute NotesRoute MapRoute Report
July 24th 2008MongoliaMayhan Tolgoy - Junichin GoviMap Report
July 25th 2008MongoliaJunichin Govi dune walkingMap Report
July 26th 2008MongoliaJunichin Govi - N44.54 E102.12Map Report
July 27th 2008MongoliaN44.54 E102.12 - ArvaikheerMap Report
July 28th 2008MongoliaArvaikheer - N46.59 E103.03Map Report
July 29th 2008MongoliaN46.59 E103.03 - Shiveet MankhanMap Report
July 30th 2008MongoliaWalking near Shiveet MankhanMap Report
July 31st 2008MongoliaShiveet Mankhan - Terkhin Tsagaan NuurMap Report
August 01st 2008MongoliaWalking near Terkhin Tsagaan NuurMap Report
August 02nd 2008MongoliaTerkhin Tsagaan Nuur - N48.52 E099.27Map Report
DateCountryRoute NotesRoute MapRoute Report
August 03rd 2008MongoliaN48.52 E099.27 - N50.05 E100.02Map Report
August 04th 2008MongoliaN50.05 E100.02 - Hovsgol NuurMap Report
August 05th 2008MongoliaWalking near Hovsgol NuurMap Report
August 06th 2008MongoliaHovsgol Nuur - MoronMap Report
August 07th 2008MongoliaMoron - N49.16 E098.09Map Report
August 08th 2008MongoliaN49.16 E098.09 - N48.51 E096.41Map Report
August 09th 2008MongoliaN48.51 E096.41 - N49.05 E094.16Map Report
August 10th 2008MongoliaN49.05 E094.16 - Chjargas NuurMap Report
August 12th 2008MongoliaChjargas Nuur - N49.22 E090.53Map Report
August 13th 2008MongoliaN49.22 E090.53 - Tsagaan NuurMap Report
DateCountryRoute NotesRoute MapRoute Report
August 14th 2008Mongolia/RussiaTsagaan Nuur - Kosh AgachMap Report
August 15th 2008RussiaKosh Agach - N51.36 E085.36Map Report
August 16th 2008RussiaN51.36 E085.36 - N51.39 E085.45Map Report
August 17th 2008RussiaN51.39 E085.45 - TroitskoyeMap Report
August 18th 2008RussiaTroitskoye - AleyskMap Report
August 19th 2008RussiaAleysk - RubtsovskMap Report
August 20th 2008Russia/KazstanRubtsovsk - SemeyMap Report
August 21st 2008KazakhstanSemey - N49.45 E082.02Map Report
August 22nd 2008KazakhstanN49.45 E082.02 - N48.45 E080.51Map Report
August 23rd 2008KazakhstanN48.45 E080.51 - N45.43 E080.19Map Report
DateCountryRoute NotesRoute MapRoute Report
August 24th 2008KazakhstanN45.43 E080.19 - Kapcagajskoje VodochranilisceMap Report
August 25th 2008KazakhstanKapcagajskoje Vodochranilisce - AlmatyMap Report

Then, after a few days in Almaty...

DateCountryRoute NotesRoute MapRoute Report
August 28th 2008KazakhstanAlmaty - LugovoyMap Report
August 29th 2008KazakhstanLugovoy - VannovkaMap Report
August 30th 2008KazakhstanTrekking in the HillsMap Report
August 31st 2008KazakhstanVannovka - TurkestanMap Report
September 02nd 2008KazakhstanTurkestan - DzhusalyMap Report
September 03rd 2008KazakhstanDzhusaly - Aral SeaMap Report
September 04th 2008KazakhstanAral Sea - AralskMap Report
September 05th 2008KazakhstanAralsk - IrgizMap Report
September 06th 2008KazakhstanIrgiz - N50.06 E059.63Map Report
September 07th 2008KazakhstanN50.06 E059.63 - AktyubinskMap Report
DateCountryRoute NotesRoute MapRoute Report
September 08th 2008KazakhstanAktyubinsk - Calkar LakeMap Report
September 09th 2008KazakhstanCalkar Lake - UralskMap Report
September 10th 2008Kazstan/RussiaUralsk - SamaraMap Report
September 12th 2008RussiaSamara - KazanMap Report
September 14th 2008RussiaKazan - Nizhny NovgorodMap Report
September 15th 2008RussiaNizhny Novgorod - SuzdalMap Report
September 16th 2008RussiaSuzdal and VladimirMap Report
September 19th 2008RussiaSuzdal - MoscowMap Report
September 23rd 2008RussiaMoscow - NovgorodMap Report
September 25th 2008RussiaNovgorod - St PetersburgMap Report
DateCountryRoute NotesRoute MapRoute Report
September 29th 2008Russia/EstoniaSt Petersburg - Kokhtla YarveMap Report
September 30th 2008Estonia/LatviaKokhtla Yarve - RigaMap Report
October 01st 2008Lat/Lith/PolandRiga - WarsawMap Report
October 02nd 2008Poland/GermanyWarsaw - FrankfurtMap Report
October 03rd 2008Germany/HollandFrankfurt - EindhovenMap Report
October 04th 2008Holland/BelgiumEindhoven - BruggeMap Report
October 05th 2008Belgium/FranceBrugge - CalaisMap Report
DateCountryRoute NotesRoute MapRoute Report

And so to the end of a truly memorable journey. Since we started at Calais on the 17th of March, the truck has driven exactly 38,138 Kms, or in other words, 23,836 Miles. Many thanks are due to drivers Toni, for UK to Beijing; Blair, for Beijing to Mongolia; Vernon, for Kazakstan to Calais; and a very big thanks to Jay, who drove the whole way with me, Calais to Calais.

Note: All route and stored position data are copyright 2008 Tim Makins and MapAbility.Com

About this Archive

This page is an archive of entries from July 2008 listed from newest to oldest.

February 2008 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01