How to show a track on google earth, after the fact?

One thing you might want to consider is the distinction between creating a picture with your track drawn on it, (which is fine and may suit your purposes) versus creating a track line in google earth as a kml file(kmz?). The point is that google earth is so interactive, unlike a screen grab. Sometimes I will look at a track and then zoom in really close for the detail,eg an anchorage or interesting location. A screen grab is no good for that. Google earth offers so much more its worth a play.
 
One thing you might want to consider is the distinction between creating a picture with your track drawn on it, (which is fine and may suit your purposes) versus creating a track line in google earth as a kml file(kmz?). The point is that google earth is so interactive, unlike a screen grab. Sometimes I will look at a track and then zoom in really close for the detail,eg an anchorage or interesting location. A screen grab is no good for that. Google earth offers so much more its worth a play.

I agree

I made this interactive map for google earth

it is the most frequently viewed thing on my website



embed





and if that failed it is on this page

http://www.keepturningleft.co.uk/sailing-around-britain/interactive-map-of-the-journey-so-far/
 
I've just done this by loading various vessels Voyage Data Recorder log files into excel, stripping out the stuff before the NMEA code, then using a online converter to convert the pure NMEA into a KML file which then I loaded into google earth, to be fair it worked a treat
 
I'd be interested in understanding how that is done.


Many GPS units store data abouts tracks in a format called GPX.

That (or any other format) can be converted to a more JavaScript friendly format called JSON. I do this with serverside processing but there seem to be JavaScript libraries that will do this e.g. https://mapbox.github.io/togeojson/

With this "JSON", you can use the Google Maps API to draw a line on a Google Map e.g. see https://developers.google.com/maps/documentation/javascript/examples/polyline-simple for an example.

The Navionics "web api" is then used to overaly the Navionics chart on the Google map - see http://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html for an example

Both the Google Maps API and the Navionics Web API require "license keys" but they're currently free for low/non-commercial use.

That's the main steps. There's loads of other "bells and whistles" on https://thegpsblog.com/ pages but they're all additions on top of the above basic steps.

Hope this helps

Aidan
 
Top