Class StaticMapExtent
java.lang.Object
com.cercalia.sdk.model.staticmaps.StaticMapExtent
Represents a map extent (bounding box) defined by its upper-left and lower-right corners.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Stringformat()Formats the extent for the Cercalia API.@NotNull Coordinate@NotNull Coordinatestatic @NotNull StaticMapExtentof(@NotNull Coordinate upperLeft, @NotNull Coordinate lowerRight) Creates an extent from two corner coordinates.
-
Method Details
-
getUpperLeft
- Returns:
- Upper-left corner.
-
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
Formats the extent for the Cercalia API.- Returns:
- Formatted string:
"lat1,lng1|lat2,lng2".
-