ArcGIS API for JavaScript: Routing/RouteDistance (MapServer)

Built using the ArcGIS API for JavaScript