import * as geodeticLengthOperator from "@arcgis/core/geometry/operators/geodeticLengthOperator.js";
            const geodeticLengthOperator = await $arcgis.import("@arcgis/core/geometry/operators/geodeticLengthOperator.js");
            @arcgis/core/geometry/operators/geodeticLengthOperator
        Returns the geodetic length of a 2D geometry.
Notes
- Verify that 
isLoaded()returnstruebefore using this module. - Use 
load()to load this module's dependencies. 
Property Overview
| Name | Type | Summary | Object | 
|---|---|---|---|
Indicates if the operator supports input geometries that contain curves.  | geodeticLengthOperator | 
Property Details
- 
  
    
Indicates if the operator supports input geometries that contain curves. The value is
nullorundefineduntil the operator is loaded, then it will always betrue. 
Method Overview
| Name | Return Type | Summary | Object | 
|---|---|---|---|
Calculates the geodetic length of the input Geometry.  | geodeticLengthOperator | ||
Indicates if all dependencies of this module have been loaded.  | geodeticLengthOperator | ||
Promise  | Loads this module's dependencies.  | geodeticLengthOperator | 
Method Details
- 
  
  
execute
Methodexecute(geometry, options){Number} - 
  
  
    
Calculates the geodetic length of the input Geometry. Unless the
unitoption is set, the default is meters.ParametersSpecificationgeometry GeometryUnionThe input geometry.
options ObjectoptionalAdditional options.
SpecificationcurveType StringoptionalDefault Value: "geodesic"The type of geodetic curve used to determine the length.
Possible Values:"geodesic"|"loxodrome"|"great-elliptic"|"normal-section"|"shape-preserving"
unit LengthUnitoptionalDefault Value: "meters"The length unit of the return value.
ReturnsType Description Number Returns the geodetic length of the input geometry. Exampleif (!geodeticLengthOperator.isLoaded()) { await geodeticLengthOperator.load(); } // Calculate the geodetic length of a polyline const length = geodeticLengthOperator.execute(polyline); 
- 
  
  
    
Loads this module's dependencies. This method must be called first if
isLoadedreturnsfalse.ReturnsType Description Promise Resolves when the dependencies have been loaded. - See also