Mapping Service: Miscellaneous

Compute zoom and center for a bounding box

Returns a zoom distance and center point that fits the provided bbox into an image of the given width and height

get/v1/spatial/maps/zoomAndCenter

Request

  • Base URL: https://api.cloud.precisely.com
  • URL: https://api.cloud.precisely.com/v1/spatial/maps/zoomAndCenter
  • Auth: API key in header Authorization and HTTP bearer

Query parameters

crsstring required

Coordinate reference system of the bbox coordinates (e.g., EPSG:4326, EPSG:3857).

minxnumber required

Bounding box minimum X.

minynumber required

Bounding box minimum Y.

maxxnumber required

Bounding box maximum X.

maxynumber required

Bounding box maximum Y.

widthinteger required

Output image width in pixels.

heightinteger required

Output image height in pixels.

Response

Zoom and center computed successfully

Example response

{
  "crs": {
    "type": "name"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.