Files to look at:

How to: implement a route calculator using GIS providers

This example demonstrates how to use GIS services to implement a route calculator.
To add a location to a route, click its pushpin.