- point
An sf
object with POINT geometries, representing the
locations to reverse geocode. The input must be in EPSG:4326 (WGS84) CRS.
- boundary_circle_radius
Numeric or NULL. The radius (in meters) of a
circular boundary around each point to limit the search area. Must be a
positive number. If NULL
(default), no boundary radius is applied.
- size
Numeric or NULL. The maximum number of results to return per point.
Must be a positive integer. If NULL
(default), the API’s default size
is used.
- layers
Character or NULL. The layers to include in the search, specified
as a comma-separated string (e.g., "address,poi"
). If NULL
(default), the API’s default layers are used. See the NLS geocoding API
documentation for valid layers.
- sources
Character or NULL. The data sources to search in, specified as a
comma-separated string (e.g., "geographic-names,addresses"
). Must be
one or more of "interpolated-road-addresses"
, "geographic-names"
,
"addresses"
, "mapsheets-tm35"
, or "cadastral-units"
.
If NULL
(default), the API’s default sources are used.
- return
Character. The format of the returned data. Must be one of
"sf"
(default, returns an sf
object) or "json"
(returns
a list of raw JSON responses).
- api_key
Character. API key for authenticating with the NLS geocoding API.
Defaults to the value stored in options(geofi_mml_api_key)
. You can
obtain an API key from the National Land Survey of Finland website (see
https://www.maanmittauslaitos.fi/en/rajapinnat/api-avaimen-ohje).