Hi,
Information about retrieving directions (including using waypoints) can be found in the TMS WebGMaps developers guide PDF (available from http://www.tmssoftware.com/site/manuals/
An example can be found in the WebGMapsDirections demo (included with the product download).
An example can be found in the WebGMapsDirections demo (included with the product download).