Learn R Programming

osmdata (version 0.1.9)

bbox_to_string: 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

Run this code
# NOT RUN {
bbox_to_string (getbb ("hampi india"))
# }

Run the code above in your browser using DataLab