Class StaticMapExtent

java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapExtent

public final class StaticMapExtent extends Object
Represents a map extent (bounding box) defined by its upper-left and lower-right corners.
  • Method Details

    • getUpperLeft

      @NotNull public @NotNull Coordinate getUpperLeft()
      Returns:
      Upper-left corner.
    • getLowerRight

      @NotNull public @NotNull Coordinate getLowerRight()
      Returns:
      Lower-right corner.
    • of

      @NotNull public static @NotNull StaticMapExtent of(@NotNull @NotNull Coordinate upperLeft, @NotNull @NotNull Coordinate lowerRight)
      Creates an extent from two corner coordinates.
      Parameters:
      upperLeft - Upper-left corner.
      lowerRight - Lower-right corner.
      Returns:
      A new extent.
    • format

      @NotNull public @NotNull String format()
      Formats the extent for the Cercalia API.
      Returns:
      Formatted string: "lat1,lng1|lat2,lng2".