R: Convert a named matrix or a named or unnamed vector to a...

bbox_to_string {osmdata} | R Documentation

## Convert a named matrix or a named or unnamed vector to a string

### Description

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

### Usage

    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.

### See Also

Other queries: `add_osm_features()`, `add_osm_feature()`, `getbb()`, `opq_around()`, `opq_enclosing()`, `opq_osm_id()`, `opq_string()`, `opq()`, `overpass_status()`

### Examples

    ## Not run:
    bbox_to_string (getbb ("hampi india"))

    ## End(Not run)

[Package osmdata version 0.1.10 Index]