GeoJSON features’ geometry can be represented as a discriminated union based on their geometry type:
Note: All coordinate arrays support both 2D (longitude, latitude) and 3D (longitude, latitude, altitude) formats. The third coordinate (z) represents elevation or altitude.

Seonglae Cho