Azure Cosmos DB: Geospatial indexing and query support
Published date: August 20, 2015
The latest Azure Cosmos DB service update includes support for automatic indexing of geospatial data. It also includes SQL support for performing proximity queries stored in Azure Cosmos DB. The updates are specifically:
- New index type: Spatial
- New SQL built-in functions: ST_DISTANCE, ST_WITHIN, ST_ISVALID, and ST_ISVALIDDETAILED
New releases of the .NET, Node.js, Java, JavaScript, and Python SDKs support creating and modifying indexing policies with the spatial index type. The .NET SDK release 1.4.0 adds new types for representing points and polygons, and new LINQ query operators for performing spatial queries. To learn more, you can:
- Read the blog announcement: Announcing Geospatial support in Azure Cosmos DB
- Review the documentation section: Working with Geospatial data in Azure Cosmos DB
- Build the samples from GitHub: Azure-documentdb-net