Class GeoObject

java.lang.Object
com.azure.core.models.GeoObject
Direct Known Subclasses:
GeoCollection, GeoLineString, GeoLineStringCollection, GeoPoint, GeoPointCollection, GeoPolygon, GeoPolygonCollection

public abstract class GeoObject extends Object
An abstract geo object.
  • Constructor Details

  • Method Details

    • getType

      public abstract GeoObjectType getType()
      Gets the GeoJSON type for this object.
      Returns:
      The GeoJSON type for this object.
    • getBoundingBox

      public final GeoBoundingBox getBoundingBox()
      Bounding box for this GeoObject.
      Returns:
      The bounding box for this GeoObject.
    • getCustomProperties

      public final Map<String,Object> getCustomProperties()
      Additional properties about this GeoObject.
      Returns:
      An unmodifiable representation of the additional properties associated with this GeoObject.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object