geocode_OSM: Geocodes a location using OpenStreetMap Nominatim
Description
Geocodes a location (based on a search query) to coordinates and a bounding box. Similar to geocode from the ggmap package. It uses OpenStreetMap Nominatim.
Usage
geocode_OSM(q, projection = "longlat")
Arguments
q
a character that specifies a search query. For instance "India" or "CBS Weg 11, Heerlen, Netherlands".
projection
projection in which the coordinates and bounding box are returned. Either a PROJ.4 character string or a shortcut. See get_proj4 for a list of shortcut values.
Value
A list of two items: "coords", a vector containing the longitude and latitude coordinates, and "bbox", the corresponding bounding box.