Some random places I Have seen ...
loading ...

GPX is a standard XML format used for describing GPS data.

One possible source for such information is, for example, a GPS data logger.

The path from GPX to Google Maps can be completed in 3 simple steps:

1. Export the recorded tracks to GPX

In my case, with the Venture HC, it is quite simple.

Connect the Venture HC to the Mac through the USB port, turn it on, fire up Road Trip and click on the “Receive” button. The recorded tracks should appear in the “Recently Read” folder. Simply copy the needed tracks into a created folder and then export the folder.

Road Trip

2. Convert the GPX file to KMZ

KMZ files are zipped versions of KML files, which is another XML based standard for representing GPS data.

In any case, the KMZ format is a format that Google Maps understands, so the GPX must be transformed to this format, with GPS Visualizer, for example.

3. Code the Map

Couldn’t be easier:

    if (GBrowserIsCompatible()) {
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(49.613824,6.127625), 12);
      var kml = new GGeoXml("");

And, the final result, for example, a bicycle route around luxembourg.

The hard part of all this is producing relevant input data….in some form of physical activity, of course…

Related posts:

  1. Panoramio-like Gallery with Google Maps, PHP and WordPress
  2. Self Flickring
Tags: , , ,
2 Responses to “Displaying GPX data on Google Maps”
  1. summ3r says:

    Si desea convertir un archivo KML en formato GPX o viceversa, una forma fácil es con esto conversor gratuito online

  2. david says:

    Hola, ¿Hay alguna forma de mostrar al mismo tiempo el perfil del track y datos como la altura maxima, minima, altura acumulada, etc…?

Leave a Reply