esri.tasks.RouteParameters doesn't support returnZ

Discussion created by frank.koenigstein on May 28, 2013
Latest reply on May 27, 2014 by BobGallo
I'm working with a 3D network dataset and published a network analysis service with ArcGIS Server 10.1. I like to use the service within a web applikation using ArcGIS JavaScript API (Version 3.4). Therefore I like to use the z-Values.

Although the REST API already supports a parameter "returnZ" the JavaScript API doesn't:
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"];


When will the API support this parameter or is there a workaround?