This function converts a bounding box into a string for use in web apis

bbox_to_string(bbox)

Arguments

bbox

bounding box as character, matrix or vector. If character, the bbox will be found (geocoded) and extracted with getbb. Unnamed vectors will be sorted appropriately and must merely be in the order (x, y, x, y).

Value

A character string representing min x, min y, max x, and max y bounds. For example: "15.3152361,76.4406446,15.3552361,76.4806446" is the bounding box for Hampi, India.

Examples

if (FALSE) { bbox_to_string (getbb ("hampi india")) }