Table of Contents

Class GeospatialConfig

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

Represents geospatial configuration for a collection in the Azure Cosmos DB service

public sealed class GeospatialConfig
Inheritance
GeospatialConfig
Inherited Members
Extension Methods

Examples

{ "id": "CollectionId", "indexingPolicy":..., "geospatialConfig": { "type": "Geography" } }

Constructors

GeospatialConfig()

Initializes a new instance of the GeospatialConfig class for the Azure Cosmos DB service.

public GeospatialConfig()

Remarks

Geospatial type is set to Geography by default.

GeospatialConfig(GeospatialType)

Initializes a new instance of the GeospatialConfig class for the Azure Cosmos DB service.

public GeospatialConfig(GeospatialType geospatialType)

Parameters

geospatialType GeospatialType

Specifies GeospatialType of collection, which can be either Geography or Geometry

Properties

GeospatialType

Gets or sets the geospatial type (geography or geometry) in the Azure Cosmos DB service.

public GeospatialType GeospatialType { get; set; }

Property Value

GeospatialType

One of the values of the Microsoft.Azure.Documents.GeospatialType enumeration.