ArcGIS API for JavaScript: Test/Traverse_Tool (MapServer)

Built using the ArcGIS API for JavaScript