/// <summary> /// Initializes new instance of <see cref="GeoPoint"/>. /// </summary> /// <param name="position">The position of the point.</param> /// <param name="boundingBox">The <see cref="GeoBoundingBox"/> to use.</param> /// <param name="additionalProperties">The set of additional properties associated with the <see cref="GeoObject"/>.</param> public GeoPoint(GeoPosition position, GeoBoundingBox?boundingBox, IReadOnlyDictionary <string, object?> additionalProperties) : base(boundingBox, additionalProperties) { Position = position; }
/// <summary> /// Initializes new instance of <see cref="GeoPoint"/>. /// </summary> /// <param name="position">The position of the point.</param> /// <param name="boundingBox">The <see cref="GeoBoundingBox"/> to use.</param> /// <param name="customProperties">The set of custom properties associated with the <see cref="GeoObject"/>.</param> public GeoPoint(GeoPosition position, GeoBoundingBox?boundingBox, IReadOnlyDictionary <string, object?> customProperties) : base(boundingBox, customProperties) { Coordinates = position; }
/// <summary> /// Initializes new instance of <see cref="GeoPoint"/>. /// </summary> /// <param name="position">The position of the point.</param> public GeoPoint(GeoPosition position) : this(position, null, DefaultProperties) { }
/// <inheritdoc /> public bool Equals(GeoPosition other) { return(Nullable.Equals(Altitude, other.Altitude) && Longitude.Equals(other.Longitude) && Latitude.Equals(other.Latitude)); }