Skip to content

ndw/gpxgoogle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

gpxgoogle

This script reads GPX data (for example, from your GPS) and plots it on a Google map.

Usage

gpxgoogle [options] track.gpx [track.gpx ...]

The script reads configuration information from ~/.gpxgoogle and then reads one or more track files and builds a Google maps plot of those tracks.

Options:

  • -h Suppress the HTML wrapper, just output the mapdata
  • -m Specify the Google maps magnification, defaults to $MAGDEFAULT
  • -l Specify the library URL for the map functions, irrelevant if -h is used
  • -s Show track points

Example

There's an example on the project HTML page.

.gpxgoogle config file

The .gpxgoogle config file is a simple XML file:

<config>
  <title>Google Maps GPS Track</title>
  <width>640px</width>
  <height>640px</height>
  <units>mi</units>
  <colinear-threshold>0.00001</colinear-threshold>
</config>

The title, width, and height are only used if an HTML page is generated. They specify the title of the page and the dimensions of the map, respectively.

The data generated includes the distance between points in the units specified.

The colinear-threshold determines how nearly colinear three points have to be in order to drop the middle one. Smaller values produce more accurate tracks at the expense of more points (larger, slower maps).

About

Plots GPX data on a Google Map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published