Skip to main content

Function: ringAreaMeters()

function ringAreaMeters(points): number | null;

Defined in: packages/core/src/expr/functions.ts:995

Area of a closed ring in square metres, by spherical excess — the same approximation JavaRosa/ODK uses, so exported RFD and exported XForm agree. An explicit closing vertex is ignored; the ring closes itself. Fewer than three distinct points has no area.

Parameters

ParameterType
pointsreadonly LatLng[]

Returns

number | null