GeoJSON is a format for encoding geographic data using JSON notation. A GeoJSON object can represent a region of space, a spatially bounded object, or a list of objects.
GeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon and GeometryCollection.
GeoJSON introduces the concept of a Feature object, which contains a geometry object and additional properties, and a FeatureCollection contains a Feature as an array.
For a demo Xcode project that will show how you can use this data format to display objects on a map, you can look at the link:
https://github.com/johnnieWa1ker/GeoJSON
A geometry object must have a type property with a type value.
A geometry object of any type other than GeometryCollection must have a coordinates property which is an array of positions. The structure of elements in this array is determined by the geometry type.
Empty coordinates arrays are interpreted as null objects.
<aside> 😑 Additional properties are what we, as developers, can use to further configure a geometry object.
But it is important to remember that they do not matter to the interpreter.
</aside>
Position
The fundamental geometric construct within the coordinates of a geometry object consists of:
Point;