Interface
The outDistance parameter of the ArcGIS query params.
Properties
| Property | Type | Notes |
|---|---|---|
order | "ASC" | "DESC" |
|
outDistanceUnit | Units | Unit for reported distances (linear unit only).
If omitted, unit resolution falls back to: |
refGeometry | IGeometry | Geometry used as the distance origin. If omitted, the query |
returnDistance | boolean | If true, include computed distance per feature in the response.
If omitted or null, defaults to true when |
order
order: "ASC" | "DESC"ASC : nearest first. DESC : farthest first. If omitted or null, no distance-based ordering.
When order is given, the fields in orderByFields will be ignored.
outDistanceUnit
outDistanceUnit: UnitsUnit for reported distances (linear unit only).
If omitted, unit resolution falls back to: outSR → defaultSR → layer extent SR.
Not supported when the layer's native spatial reference is in degree units.