7

What is the best way to plot GPS coordinates on a Google Map?

Are there any tools that can do that (written in python specifically)?

  • 2
    Are you interested in speaking to the GPS directly, or you have a GPX or equivalent file you'd like to convert? – scw Aug 13 '10 at 19:39
  • 1
    Please fix the typo in the question; it's disrupting my sense of balance in the universe ;) – JasonBirch Aug 13 '10 at 23:38
8

In Python as asked (Convert GPS .gpx to KML) gpx2kml—Simple Python program to convert a GPX file to a Google Maps KML file http://beej.us/gps/

Then use

var ctaLayer = new google.maps.KmlLayer('http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml'); ctaLayer.setMap(map); }

Example for Google Maps API v3 http://code.google.com/apis/maps/documentation/javascript/examples/layer-kml.html

  • Awesome. That's what I was looking for. – Frank Aug 16 '10 at 17:37
1

There are probably a lot of tools and ways for doing this. You didn't specify in which format you have GPS coordinates so i will assume that they are in downloaded from GPS device in gpx format. If that's the case, you can use online converter to kml and then display kml on to Google Map or you can use this tool.

If you would like to use python you can use GDAL/OGR lib to convert almost any format to desired one, in your case probably kml.

0

You could try http://www.gpsvisualizer.com/

Or if it doesn't have to be Google try a custom online mapping application like Geocommons

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy