Last Updated: February 25, 2016
·
5.475K
· basuke

Creating GPX file that can be used in the Xcode

Using this script, you can create gpx file of the driving route specified by addresses like this:

$ python drive.py "SFO" "Golden Gate Bridge" > sfo2ggb.gpx

You can stop by some place like this:

$ python drive.py "SFO" "Coit Tower" "Golden Gate Bridge" > sfo2ggb.gpx

https://gist.github.com/3605355

Usage: drive.py [options] origin [waypoint ...] destination

Options:
  -h, --help   show this help message and exit
  --cache=DIR  cache the result of query for Google into DIR