A Python script for downloading and merging OSM's GPS traces from given boundary box
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
gpx-merger.py
osm-gps-trace-download.py

README.md

osm-gps-trace-download.py

A Python script for downloading OSM's GPS traces from given boundary box.

There are 2 parts of variables that you should adjust to match your need.

#These variables should be adjusted to meet your requirements, 
#see http://wiki.openstreetmap.org/wiki/API_v0.6#Retrieving_GPS_points for more information
#Boundary Box
min_ln = "98.9311981"
min_lt = "18.7347042"
max_ln = "99.0335083"
max_lt = "18.8309158"

#Start downloading page
page = 0 

Simply run python osm-gps-trace-download.py

gpx-merger.py

A Python script for merging OSM's GPX files.

There are 2 parts of variables that you should adjust to match your need.

#Output file name
output_file_name = "trace-out.gpx"
#Output file directory
output_directory = "output"

Simply run python gpx-merger.py. You output file should be in output/trace-out.gpx by default.

Todo

  • Resumable GPX file download
  • Merged GPX file noise reduction