ArcGIS API for JavaScript: NetworkDataset/NetworkAnalysis (MapServer)

Built using the ArcGIS API for JavaScript