Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: NAUTurn

require(["esri/tasks/NATypes"], function(NATypes) { /* code goes here */ });

Description

(Added at v1.4)
Constants representing how U-Turns are handled. NAUTurn has no constructor. Should be used in favor of network analysis parameters classes. For example:
require(["esri/tasks/RouteParameters", "esri/tasks/NATypes"], function(RouteParameters, NATypes){
  var routeParams = new RouteParameters();
  routeParams.restrictUTurns = NATypes.UTurn.ALLOW_BACKTRACK;
});

Samples

Search for samples that use this class.

Constants

NameDescription
ALLOW_BACKTRACKAllow u-turns at the end of any street.
AT_DEAD_ENDS_AND_INTERSECTIONSAllow u-turns at dead ends and intersections.
AT_DEAD_ENDS_ONLYOnly allow u-turns at dead ends where a street is not connected to another street.
NO_BACKTRACKDo not allow u-turns at the end of any streets.
Show Modal