Skip to content

PositionSchema

const PositionSchema: ZodArray<ZodNumber, "many">

Defined in: packages/core/src/schemas/geojson.schema.ts:66

A GeoJSON Position: [longitude, latitude] or [longitude, latitude, altitude].

RFC 7946 §3.1.1 allows an optional third element (altitude/elevation), so a 3-element position is VALID and is preserved as-is — never rejected or stripped. Fewer than two elements is invalid.