Position Class

Definition

A position is represented by an array of numbers in the Azure DocumentDB database 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>
Inheritance
Position
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Constructors

Position(IList<Double>)

Initializes a new instance of the Position class in the Azure DocumentDB database service.

Position(Double, Double)

Initializes a new instance of the Position class in the Azure DocumentDB database service.

Position(Double, Double, Nullable<Double>)

Initializes a new instance of the Position class in the Azure DocumentDB database service.

Properties

Altitude

Gets optional altitude in the Azure DocumentDB database service.

Coordinates

Gets position coordinates in the Azure DocumentDB database service.

Latitude

Gets latitude in the Azure DocumentDB database service.

Longitude

Gets longitude in the Azure DocumentDB database service.

Methods

Equals(Position)

Determines if this Position is equal to the other in the Azure DocumentDB database service.

Equals(Object)

Determines whether the specified Position is equal to the current Position in the Azure DocumentDB database service.

GetHashCode()

Serves as a hash function for the Position type in the Azure DocumentDB database service.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)