Posted On: Oct 25, 2021

Amazon DocumentDB (with MongoDB compatibility) is a database service that is purpose-built for JSON data management at scale, fully managed and integrated with Amazon Web Services, and enterprise-ready with high durability.

Today, Amazon DocumentDB added support for storing, querying and indexing Geospatial data. With Geospatial querying capabilities you get the following benefits:

  • Creating 2dsphere Indexes - You can now create 2dsphere indexes on Points. A 2dsphere index supports queries that calculate geometries on a sphere.
  • Proximity querying - You can now use the MongoDB APIs such as $maxDistance, $minDistance, $geoNear and $nearSphere to perform proximity queries stored on data stored DocumentDB. For example you can use $geoNear to find all airports within 50 miles from a given city.

For more information on how to get started with Geospatial querying see our documentation. Geospatial capabilities are supported in all regions where Amazon DocumentDB is available. If you are new to Amazon DocumentDB, the getting started guide will show you how to quickly provision an Amazon DocumentDB cluster and explore the flexibility of the document model. Have questions or feature requests? Email us at: documentdb-feature-request@amazon.com.