The name of our program is GPX-Reporter.py. If you remember the Tag and markup-based formats section in Chapter 2, Learning Geospatial Data, the GPX format is the most common way to store GPS route information. Nearly every program and device relying on GPS data can convert to and from GPX.
For this example, you can download a sample GPX file from: http://git.io/vl7qi. Also, you will need to install a few Python libraries from PyPI.
You should simply use easy_install or pip to install these tools. We will also be using a module called SRTM.py. This module is a utility for working with near-global elevation data collected during the 11-day Shuttle Radar Topography Mission (SRTM) in 2000 by the space shuttle Endeavor. Install the SRTM module using pip:
pip install srtm.py
Alternatively, you can also download the zipped file, extract it, and copy the...