Converting a Google Maps route to Tomtom Itinerary

Yamaha FJR Motorcycle Forum

Help Support Yamaha FJR Motorcycle Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

mcatrophy

Privileged to ride a 2018 FJR1300AS
Joined
Aug 25, 2006
Messages
4,332
Reaction score
1,824
Location
Derby, UK
For some years I've used Google Maps to plan a route, putting in my start and end points, then dragging the route to follow the roads I want to take. I've then "knife-and-forked" this into my Tomtom as an itinerary. This can be a bit tedious, even using the Tomtom with their Home application on a computer.

When I found out that the URL that is in the address bar after creating the Google route contains all the points of the route, I decided this conversion process could be automated, so I had a go at writing a web page that would do this.

Although somewhat experimental, it works and seems to do the job pretty well.

If anyone's interested, it's here.

Caveats:

  • I've only tried this in my Tomtom Rider Pro, it will probably work across the range.
  • Google Maps allows a limited number of way-points, if you want more, you'll have to create more than one itinerary (you can easily merge them with an editor or load them as separate itineraries).
  • The start and end points must be dragged, Tomtom won't understand addresses plugged into its itinerary file, only lat-longs (which dragging will give).
  • You need sufficient computer savvy to save the resultant file into the itn directory in your Tomtom.
  • You may need to check the route since it works by lat-longs, roads on Google Maps may be more up to date than those on your Tomtom (particularly if you're a cheap-skate like me and don't pay for updates).
  • If Google change the way they do things, all bets are off.
The utility contains an example of map and resultant itinerary file.

Hope someone finds this useful.

 
Last edited by a moderator:
Just purchased a Tomtom Rider 4.3, and have always used Google maps for planning. My computers run only Ubuntu Linux so the use of Tyre and Home are not supported. I'll start working with your software as soon as my schedule slows in a couple of weeks.

Looks like it will solve my problem.

Thanks

Walt

 
Not sure if it'll help, but I've been using GPS Visualizer for a while now to allow for creating routes in googlemaps and then importing them to various GPS systems. Typically you can save the KML file from google and then covert it with GPS visualizer to whatever file type you need for your GPS.

 
Thanks for making this tool !

I know I'm going to feel dumb when you answer this...

How are you getting the resultant URL you use in your example?

The URL in my address bar remains https://maps.google.com (here in the US) or https://www.google.co.uk/maps (if i use your UK link) ...the URL never changes throughout the process i am using, or any other manner i try. (Using IE and Firefox) I can swear I've seen it change before... but can't remember or reproduce it...

If I go to the directions pane on the left of the maps window, and click the link tool (little chain), I do get the entire route in a URL, but it doesn't follow the format your example does, so the tool wont resolve it (starting with the missing /@)

I understand why... and can see the differences between your example url and the url provided by the Google maps link tool, but I can't seem to reproduce anything that looks more like your example URL.

Thanks for this :)

Here is an example of a short trip around the block for me:

https://www.google.co.uk/maps?saddr=42.378820,+-74.637423&daddr=42.3791347,-74.6381349+to:42.2656729,-74.7768369+to:42.2188049,-74.6767569+to:42.262771,-74.599954+to:42.378947,-74.637166&hl=en&ll=42.297373,-74.690208&spn=0.196044,0.360832&sll=42.296612,-74.65107&sspn=0.196046,0.360832&geocode=FUSmhgIdkR-N-w%3BFX6nhgIdyhyN-yn7SW8GM2rciTEqcL2eVGnYuw%3BFUjshAId_P6K-ykJycGd02TciTFhSsGT4zrxeQ%3BFTQ1hAId7IWM-ymDFE59rWbciTF7zBgNyu295w%3BFfPghAId7rGN-ymjtJJhjmfciTHknVq0njji1Q%3BFcOmhgIdkiCN-w&mra=ls&via=1,2,3,4&t=m&z=12

 
Thanks for making this tool !
I know I'm going to feel dumb when you answer this...

How are you getting the resultant URL you use in your example?

The URL in my address bar remains https://maps.google.com (here in the US) or https://www.google.co.uk/maps (if i use your UK link) ...the URL never changes throughout the process i am using, or any other manner i try. (Using IE and Firefox) I can swear I've seen it change before... but can't remember or reproduce it...

If I go to the directions pane on the left of the maps window, and click the link tool (little chain), I do get the entire route in a URL, but it doesn't follow the format your example does, so the tool wont resolve it (starting with the missing /@)

I understand why... and can see the differences between your example url and the url provided by the Google maps link tool, but I can't seem to reproduce anything that looks more like your example URL.

Thanks for this
smile.png


Here is an example of a short trip around the block for me:

https://www.google.co.uk/maps?saddr=42.378820,+-74.637423&daddr=42.3791347,-74.6381349+to:42.2656729,-74.7768369+to:42.2188049,-74.6767569+to:42.262771,-74.599954+to:42.378947,-74.637166&hl=en&ll=42.297373,-74.690208&spn=0.196044,0.360832&sll=42.296612,-74.65107&sspn=0.196046,0.360832&geocode=FUSmhgIdkR-N-w%3BFX6nhgIdyhyN-yn7SW8GM2rciTEqcL2eVGnYuw%3BFUjshAId_P6K-ykJycGd02TciTFhSsGT4zrxeQ%3BFTQ1hAId7IWM-ymDFE59rWbciTF7zBgNyu295w%3BFfPghAId7rGN-ymjtJJhjmfciTHknVq0njji1Q%3BFcOmhgIdkiCN-w&mra=ls&via=1,2,3,4&t=m&z=12
Not sure what is happening. I don't use the link, definitely what appears in the address bar. I'm using Safari, I will try with other browsers when I get a moment (domestic pressures, today is Mother's day).

 
Last edited by a moderator:
Thanks for making this tool !
I know I'm going to feel dumb when you answer this...

How are you getting the resultant URL you use in your example?

The URL in my address bar remains https://maps.google.com (here in the US) or https://www.google.co.uk/maps (if i use your UK link) ...the URL never changes throughout the process i am using, or any other manner i try. (Using IE and Firefox) I can swear I've seen it change before... but can't remember or reproduce it...

If I go to the directions pane on the left of the maps window, and click the link tool (little chain), I do get the entire route in a URL, but it doesn't follow the format your example does, so the tool wont resolve it (starting with the missing /@)

I understand why... and can see the differences between your example url and the url provided by the Google maps link tool, but I can't seem to reproduce anything that looks more like your example URL.

Thanks for this
smile.png


Here is an example of a short trip around the block for me:

https://www.google.co.uk/maps?saddr=42.378820,+-74.637423&daddr=42.3791347,-74.6381349+to:42.2656729,-74.7768369+to:42.2188049,-74.6767569+to:42.262771,-74.599954+to:42.378947,-74.637166&hl=en&ll=42.297373,-74.690208&spn=0.196044,0.360832&sll=42.296612,-74.65107&sspn=0.196046,0.360832&geocode=FUSmhgIdkR-N-w%3BFX6nhgIdyhyN-yn7SW8GM2rciTEqcL2eVGnYuw%3BFUjshAId_P6K-ykJycGd02TciTFhSsGT4zrxeQ%3BFTQ1hAId7IWM-ymDFE59rWbciTF7zBgNyu295w%3BFfPghAId7rGN-ymjtJJhjmfciTHknVq0njji1Q%3BFcOmhgIdkiCN-w&mra=ls&via=1,2,3,4&t=m&z=12
Ok, had a little look.

Your link creates your route map in any browser that I have access to (Safari, Firefox, Chrome). But a curious thing happens, I paste your link into the browser's URL, then move the cursor somewhere over the map. The URL changes into one my application recognises, It then gives you the itinerary -

-7463742|4237882|GM_1|1|
-7463813|4237913|GM_2|0|
-7477683|4226567|GM_3|0|
-7467675|4221880|GM_4|0|
-7459995|4226277|GM_5|0|
-7463716|4237894|GM_6|2|
Can't test it in my Tomtom, not got US maps, but it looks perfect.

I'll investigate a little further, maybe modify my application to take "your" format if I can.

 
Last edited by a moderator:
First, let me say Happy Mothers day to all the UK Moms !

I'm bettin' you aren't using Windows ;)

I just dropped Safari on a Windows VM to try it and the result is the same as IE and FF on Windows.

I ask this question while assuming that the link that the google maps link button provides would be universal across platforms...

Would you be able to use similar code to decode the link button URL? (Looks like all the data is there... I'm thinkin' it would just be different delimiters right?) It might make it more universal.

You want a good laugh ???... I read your above reply and nearly shit my knickers.... Really... (well, not literally... but almost)

I thought i forgot mothers day....

Just in case anyone else is as thoughtless as I, and cant remember holidays for their loved ones... here is an early reminder:

Mothers day for those of us in the US is May 11

 
First, let me say Happy Mothers day to all the UK Moms !
I'm bettin' you aren't using Windows
wink.png


I just dropped Safari on a Windows VM to try it and the result is the same as IE and FF on Windows.

I ask this question while assuming that the link that the google maps link button provides would be universal across platforms...

Would you be able to use similar code to decode the link button URL? (Looks like all the data is there... I'm thinkin' it would just be different delimiters right?) It might make it more universal.

You want a good laugh ???... I read your above reply and nearly shit my knickers.... Really... (well, not literally... but almost)

I thought i forgot mothers day....

Just in case anyone else is as thoughtless as I, and cant remember holidays for their loved ones... here is an early reminder:

Mothers day for those of us in the US is May 11
Sorry about your (nearly) brown underwear ...

No, not using Windoze, far too frustrating.

Ok, I've modified the application, it should be happy with either link format you gave, give it a whirl and let me know.

 
Last edited by a moderator:
It works perfectly :)

Thank you for all of your time and effort!

This will be exceptionally useful for me.

(I hope you didn't get in trouble....)

I am quite positive you just made it so that 100% of the people that use this will have huge toothy grins on their faces..this is way easier and far more efficient than Tyre for my needs.

I know this will work perfectly in my TomToms

This should definitely be stickied...

 
It works perfectly :)
Thank you for all of your time and effort!

This will be exceptionally useful for me.

(I hope you didn't get in trouble....)

I am quite positive you just made it so that 100% of the people that use this will have huge toothy grins on their faces..this is way easier and far more efficient than Tyre for my needs.

I know this will work perfectly in my TomToms

This should definitely be stickied...
Glad to help.
(And I'm always in trouble :( )

 
Top