Position
A position is the fundamental geometry construct. Positions are represented by Positions in Spatial K
In JSON, a position is an array of numbers. There MUST be two or more elements. The first two elements are longitude and latitude, or easting and northing, precisely in that order using decimal numbers. Altitude or elevation MAY be included as an optional third element.
When serialized, the latitude, longitude, and altitude (if present) will be represented as an array.
LngLat(longitude = -75.0, latitude = 45.0)
Content copied to clipboard
will be serialized as
[-75.0,45.0]
Content copied to clipboard
See also
PositionSerializer