GeoJSON format
GeoJSON is an open-source format that describes simple geographical features. It includes two essential fields:
- type: Specifies the GeoJSON object type (e.g., Point, Polygon, MultiPolygon).
- coordinates: Contains the object’s coordinates. When specifying latitude and longitude, list the longitude first and then the latitude.
Note: If specifying latitude and longitude coordinates, list the longitude first and then latitude.
Geospatial Queries with Python MongoDB
GeoJSON is an open-source format containing simple geographical features and is based on JavaScript Object Notation. It is used to format shapes in a coordinate space and multiple types are supported by MongoDB to permit storing geospatial data. This article will cover the various ways of using geospatial in MongoDB and explain the GeoJSON polygon and point types.
Prerequisites: MongoDB and Python