Position Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Cosmos.Spatial.Converters.PositionJsonConverter))]
[System.Runtime.Serialization.DataContract]
public sealed class Position : IEquatable<Microsoft.Azure.Cosmos.Spatial.Position>
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Cosmos.Spatial.Converters.PositionJsonConverter))>]
[<System.Runtime.Serialization.DataContract>]
type Position = class
interface IEquatable<Position>
Public NotInheritable Class Position
Implements IEquatable(Of Position)
- Inheritance
-
Position
- Attributes
-
Newtonsoft.Json.JsonConverterAttribute DataContractAttribute
- Implements
Constructors
Position(Double, Double, Nullable<Double>) |
Initializes a new instance of the Position class in the Azure Cosmos DB service. |
Position(Double, 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 |
GetHashCode() |
Serves as a hash function for the Position type in the Azure Cosmos DB service. |