geo_address_lookup {nominatimlite} | R Documentation |
Address lookup API for OSM elements
Description
The lookup API allows to query the address and other details of one or
multiple OSM objects like node, way or relation. This function returns the
tibble associated with the query, see geo_address_lookup_sf()
for
retrieving the data as a spatial object (sf format).
Usage
geo_address_lookup(
osm_ids,
type = c("N", "W", "R"),
lat = "lat",
long = "lon",
full_results = FALSE,
return_addresses = TRUE,
verbose = FALSE,
custom_query = list()
)
Arguments
osm_ids |
vector of OSM identifiers as numeric
( |
type |
vector character of the type of the OSM type associated to each
|
lat |
latitude column name in the output data (default |
long |
longitude column name in the output data (default |
full_results |
returns all available data from the API service.
If |
return_addresses |
return input addresses with results if |
verbose |
if |
custom_query |
A named list with API-specific parameters to be used
(i.e. |
Details
See https://nominatim.org/release-docs/develop/api/Lookup/ for additional
parameters to be passed to custom_query
.
Value
A tibble with the results found by the query.
See Also
Address Lookup API:
geo_address_lookup_sf()
Geocoding strings:
geo_address_lookup_sf()
,
geo_lite()
,
geo_lite_sf()
Examples
ids <- geo_address_lookup(osm_ids = c(46240148, 34633854), type = "W")
ids
several <- geo_address_lookup(c(146656, 240109189), type = c("R", "N"))
several