Sdílet prostřednictvím


GeoPoint Class

Definition

Represents a point geometry.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))]
public sealed class GeoPoint : Azure.Core.GeoJson.GeoObject
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))>]
type GeoPoint = class
    inherit GeoObject
Public NotInheritable Class GeoPoint
Inherits GeoObject
Inheritance
GeoPoint
Attributes

Examples

Creating a point:

var point = new GeoPoint(-122.091954, 47.607148);

Constructors

GeoPoint(Double, Double, Nullable<Double>)

Initializes new instance of GeoPoint.

GeoPoint(Double, Double)

Initializes new instance of GeoPoint.

GeoPoint(GeoPosition, GeoBoundingBox, IReadOnlyDictionary<String,Object>)

Initializes new instance of GeoPoint.

GeoPoint(GeoPosition)

Initializes new instance of GeoPoint.

Properties

BoundingBox

Represents information about the coordinate range of the GeoObject.

(Inherited from GeoObject)
Coordinates

Gets position of the point.

Type

Gets the GeoJSON type of this object.

Methods

ToString()

Converts an instance of GeoObject to a GeoJSON representation.

(Inherited from GeoObject)
TryGetCustomProperty(String, Object)

Tries to get a value of a custom property associated with the GeoObject.

(Inherited from GeoObject)

Applies to