Position Class

Definition

A position is represented by an array of numbers in the Azure Cosmos DB service. There must be at least two elements, and may be more.

The order of elements must follow longitude, latitude, altitude. Any number of additional elements are allowed - interpretation and meaning of additional elements is up to the application.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Documents.Spatial.Converters.PositionJsonConverter))]
public sealed class Position : IEquatable<Microsoft.Azure.Documents.Spatial.Position>
type Position = class
    interface IEquatable<Position>
Public NotInheritable Class Position
Implements IEquatable(Of Position)
Inheritance
System.Object
Position
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements
System.IEquatable<Position>

Constructors

Position(Double, Double)

Initializes a new instance of the Position class in the Azure Cosmos DB service.

Position(Double, Double, Nullable<Double>)

Initializes a new instance of the Position class in the Azure Cosmos DB service.

Position(IList<Double>)

Initializes a new instance of the Position class in the Azure Cosmos DB service.

Properties

Altitude

Gets optional altitude in the Azure Cosmos DB service.

Coordinates

Gets position coordinates in the Azure Cosmos DB service.

Latitude

Gets latitude in the Azure Cosmos DB service.

Longitude

Gets longitude in the Azure Cosmos DB service.

Methods

Equals(Object)

Determines whether the specified Position is equal to the current Position in the Azure Cosmos DB service.

Equals(Position)

Determines if this Position is equal to the other in the Azure Cosmos DB service.

GetHashCode()

Serves as a hash function for the Position type in the Azure Cosmos DB service.

Applies to