require(["esri/tasks/LinearUnit"], function(LinearUnit) { /* code goes here */ });
      Description
       (Added at v1.0)
A data object containing a linear distance.
Samples
      Search for 
samples that use this class.
      
      
      
Constructors
      
      
      
      
      Properties
      
        |
        | distance | Number | Specifies the value of the linear distance. | 
        | units | String | Specifies the unit type of the linear distance, such as "esriMeters", "esriMiles", "esriKilometers" etc. | 
      
      
      
      Constructor Details
      
        
        Creates a new LinearUnit object.  The constructor takes no parameters.
        Sample: 
require([
  "esri/tasks/LinearUnit", ... 
], function(LinearUnit, ... ) {
  var distUnit = new LinearUnit();
  ...
});
 
       Property Details
            
        
        Specifies the value of the linear distance.
        Sample: 
distUnit.distance = 5;
 
       
      
        
        Specifies the unit type of the linear distance, such as "esriMeters", "esriMiles", "esriKilometers" etc.
        Sample: 
distUnit.units = "esriMiles";