Interface

The outDistance parameter of the ArcGIS query params.

Properties

PropertyTypeNotes
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.

outDistanceUnitUnits

Unit 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.

refGeometryIGeometry

Geometry used as the distance origin. If omitted, the query geometry is used.

returnDistanceboolean

If true, include computed distance per feature in the response. If omitted or null, defaults to true when refGeometry or order is provided.

order

optional
Interface Property
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

optional
Interface Property
outDistanceUnit: Units

Unit 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.

refGeometry

optional
Interface Property
refGeometry: IGeometry

Geometry used as the distance origin. If omitted, the query geometry is used.

returnDistance

optional
Interface Property
returnDistance: boolean

If true, include computed distance per feature in the response. If omitted or null, defaults to true when refGeometry or order is provided.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.