Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Plots GPX data on a Google Map

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 gmapfunc.js
Octocat-spinner-32 gpxgoogle
README.md

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).

Something went wrong with that request. Please try again.