The most important object in a GeoJSON feature is the geometry object. It contains two properties: type and coordinates. The coordinates array is a collection of positions, which are [longitude, latitude] pairs (in this order). The specific structure of the coordinates array depends on the type of the shape.
GeoJSON geometries
Primitive geometries
There are three standard shapes in GeoJSON, which can be represented by primitives or multipart geometries. Primitive shapes are listed as follows:
Function |
Description |
Point |
A single position, which is a 2-element array of the form: [longitude, latitude], where longitude and latitude are floating point numbers in the ranges [-180,180] for longitude, and [-90,90] for... |