oe_search | R Documentation |
This (only internal and experimental) function provides a simple interface to the nominatim service for finding the geographical location of place names.
oe_search(
place,
base_url = "https://nominatim.openstreetmap.org",
destfile = tempfile(fileext = ".geojson"),
...
)
place |
Text string containing the name of a place the location of
which is to be found, such as |
base_url |
The URL of the nominatim server to use. The main open server hosted by OpenStreetMap is the default. |
destfile |
The name of the destination file where the output
of the search query, a |
... |
Extra arguments that are passed to |
An sf
object corresponding to the input place. The sf
object is
read by sf::st_read()
and it is based on a geojson
file returned by
Nominatim API.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.