Creating a website button for itineraries
You can publish an itinerary by creating an 'Add to TomTom' button. The button allows you to send itineraries to your users' TomTom devices via TomTom HOME. When the button is clicked, the user is redirected to the addto.tomtom website which checks if TomTom HOME is installed. If yes, the itinerary is sent to TomTom HOME. If HOME is not installed, the user is asked to install it. HOME receives the information and asks the user if they want to install the itinerary.
This is the 'Add to TomTom' button:
Note: All non-alphanumeric characters in the URL parameters of the HTML button code (see below) must be URL-escaped. This means that you need to replace all non-alphanumeric characters with the hexadecimal encoding for the value of that character. For example, For example, "http://www.yourdomain.com" becomes "http%3A%2F%2Fwww.yourdomain.com". There are websites and tools available that can help you do this.
Follow the instructions below to place an 'Add to TomTom' button on your website.
Adding an Itinerary download button
To add a button to your website, copy and paste the code below into your web page and adapt the parameters accordingly. The image for the button is downloaded from a TomTom server.
<a href="http://addto.tomtom.com/api/home/v2/content?action=install&apikey=yourAPIKey&uri=http%3A//www.YourDomain.com/YourXMLfile.xml&source=http%3A//www.tomtom.com"><img src="http://addto.tomtom.com/api/images/addtotomtom-button.gif" alt="Add-To-TomTom" border="0"/></a>