address_lookup: Lookup the address of one or multiple OSM objects like node,...

Description Usage Arguments Note Examples

Description

Vectorized over osm_ids

Usage

1
2
3
address_lookup(osm_ids, address_details = TRUE,
  email = getOption("OSM_API_EMAIL", "nominatimrpackage@example.com"),
  accept_language = getOption("LANG", "en-US,en;q=0.8"))

Arguments

osm_ids

A vector of up to 50 specific osm node, way or relations ids to return the addresses for. Format for each entry is [N|W|R]<value>.

address_details

Include a breakdown of the address into elements (TRUE == include)

email

If you are making large numbers of request please include a valid email address or alternatively include your email address as part of the User-Agent string. This information will be kept confidential and only used to contact you in the event of a problem, see Usage Policy for more details. You can pass the value in directly or set the OSM_API_EMAIL option and the function will it for all requests.

accept_language

Preferred language order for showing search results Either uses standard rfc2616 accept-language string or a simple comma separated l ist of language codes. The LANG option will be used, if set.#' @export

Note

A slight delay is introduced between calls as both OpenStreetMap Nominatim & MapQuest Nominatim API calls to reduce load on their servers.

Data (c) OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright
Nominatim Usage Policy: http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy
MapQuest Nominatim Terms of Use: http://info.mapquest.com/terms-of-use/

Examples

1
2
3
4
5
## Not run: 
places <- c("R146656", "W104393803", "N240109189")
places_found <- address_lookup(places)

## End(Not run)

hrbrmstr/nominatim documentation built on May 17, 2019, 5:11 p.m.