Skip to contents

Get what3words address from coordinates

Usage

words_from_coords(lat, lon, language = "en", full_details = FALSE)

Arguments

lat

Latitude

lon

Longitude

language

Code for the language of the returned words.

full_details

Whether to return the full details from the API, or only the what3words address for the coordinates.

Value

If full_details is FALSE (the default), returns a character vector of the what3words for the submitted coordinates. Otherwise returns a list of the full details returned by the API.

Examples

words_from_coords(lat = 51.5095, lon = -0.1266)
#> [1] "lamp.inner.dent"