Class MapExtent

java.lang.Object
com.cercalia.sdk.model.poi.MapExtent

public final class MapExtent extends Object
Represents a map extent defined by upper-left and lower-right coordinates.
  • Constructor Details

    • MapExtent

      public MapExtent(@NotNull @NotNull Coordinate upperLeft, @NotNull @NotNull Coordinate lowerRight)
  • Method Details

    • getUpperLeft

      @NotNull public @NotNull Coordinate getUpperLeft()
      Returns:
      The upper-left coordinate of the extent.
    • getLowerRight

      @NotNull public @NotNull Coordinate getLowerRight()
      Returns:
      The lower-right coordinate of the extent.
    • toCercaliaString

      @NotNull public @NotNull String toCercaliaString()
      Returns the extent as a Cercalia format string: lat,lng|lat,lng.
      Returns:
      The extent string.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object