Worked perfectly
Hi Ray thanks for that. I sometimes get that tied up in the coding that I miss the obvious. Speaking of getting tied up in the coding I noticed that by default the map option is to display in metres. I had a read through the API and found a work around that I a few of your clients may want to know about. If you find the line travelMode: google.maps.TravelMode.DRIVING and add unitSystem: google.maps.UnitSystem.IMPERIAL after the travelMode line you will be able to view the map in miles which many will want.
Thanks for your time,
David