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) |
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 |
GetHashCode() |
Serves as a hash function for the Position type in the Azure Cosmos DB service. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기