But to answer your question, you can always take the example coode ( There is a zip file download ) and update the code to read a JavaScript file with the new location. If you only have addresses, I’d pre-process the list first with Geocoding calls ( https://developer.tomtom.com/search-api/search-api-documentation-geocoding/geocode ) to get the Lat,Lng pairs.
I hope this can help and please don’t hesitate to reply to this thread if you have more questions!