Simple script to transform Google Maps directions with waypoints to a TomTom navigation itinerary.
To transform Google Maps directions into a TomTom itinerary, copy the "Share link" from the Google Maps and pass it as an argument to the script. An example is shown below:
$ python gm_to_itn.py 'https://www.google.ca/maps/dir/45.4411602,12.3059277/46.5486383,13.7149386/@45.9969317,12.4437186,9z/data=!4m14!4m13!1m10!3m4!1m2!1d13.4880256!2d46.1581339!3s0x477a5021cfa0fa4b:0x4cad8ec4af26197b!3m4!1m2!1d13.7437744!2d46.4220801!3s0x477a63a3a7173027:0xa70900f2994ad9aa!1m0!3e0?hl=en' my_directions.itn
Resulting itinerary files of this script has been tested on the following devices:
- TomTom 630
A description of the TomTom ITN file format can be found at Wikipedia.