Skip to content

Instantly share code, notes, and snippets.

@chronitis
chronitis / osmrelation_to_gpx.py
Created January 28, 2015 17:58
OSM Relation -> GPX utility
#!/usr/bin/env python3
"""
osmrelation_to_gpx.py
This script downloads a relation from OSM (given the relation number), fetches
all the ways contained and then writes the contents into a GPX file for easy
import into other tools (for instance, a handheld GPS unit/GPS-equipped phone).
Requires python3.