Class GeoPoint

java.lang.Object
com.azure.core.models.GeoObject
com.azure.core.models.GeoPoint
All Implemented Interfaces:
com.azure.json.JsonSerializable<GeoObject>

public final class GeoPoint extends GeoObject

Represents a geometric point in GeoJSON format.

This class encapsulates a point defined by a GeoPosition which includes the longitude, latitude, and optionally the altitude of the point.

This class also provides a toJson(JsonWriter) method to serialize the geometric point to JSON, and a fromJson(JsonReader) method to deserialize a geometric point from JSON.

See Also:
  • Constructor Details

    • GeoPoint

      public GeoPoint(double longitude, double latitude)
      Constructs a GeoPoint.
      Parameters:
      longitude - The longitudinal position of the point.
      latitude - The latitudinal position of the point.
    • GeoPoint

      public GeoPoint(double longitude, double latitude, Double altitude)
      Constructs a GeoPoint.
      Parameters:
      longitude - The longitudinal position of the point.
      latitude - The latitudinal position of the point.
      altitude - The altitude of the point.
    • GeoPoint

      public GeoPoint(GeoPosition position)
      Constructs a geometric point.
      Parameters:
      position - The geometric position of the point.
      Throws:
      NullPointerException - If position is null.
    • GeoPoint

      public GeoPoint(GeoPosition position, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
      Constructs a geometric point.
      Parameters:
      position - The geometric position of the point.
      boundingBox - Bounding box for the point.
      customProperties - Additional properties of the geometric point.
      Throws:
      NullPointerException - If position is null.
  • Method Details