var routeTask = new esri.tasks.RouteTask(routeTaskURL); var routeParams = new esri.tasks.RouteParameters(); routeParams.stops = new esri.tasks.FeatureSet(); routeParams.returnRoutes = true; routeParams.returnDirections = true; routeParams.returnZ = true; // ignored routeParams.directionsLengthUnits = esri.Units.METERS; routeParams.restrictionAttributes = ["none"]; routeTask.solve(routeParams);
Also in ArcGIS JavaScript API (Version 3.8)!?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.