This function reverse geocodes the coordinates provided. When
used out of the box, the function wants WGS84 coordinates (lat/long). ETRS89
or UTM zone 32 can be provided as well. When coordinates from outside of
Denmark is provided, the function will fail with a code 404.
Arguments
- section
Defines what section of the api should be called.
available_sections()exposes all options for this parameter.- x
The X coordinate to geocode. If no
sridis provided this should be the lattitude.- y
The Y coordinate to geocode. If no
sridis provided this should be the longitude.- verbose
whether or not to provide
{cli}output for the user. Enabled by default, but disabled for all functions that wrap this function- type
The coordinate type for the API to parse. By default none is provided and
WGS84is used. The options areETRS89,UTM32andWGS84. The functions checks the input against the available types and errs if the type is not allowed.- ...
<
dynamic-dots> input query parameters.
Value
Returns a list object with information about the provided section
for the location that is input.
Examples
if (connection_check()) {
reverse("regioner", x = 12.58515, y = 55.68324)
}
#> → Requesting `regioner - reverse` from DAWA
#> $ændret
#> [1] "2026-01-01T22:02:26.282Z"
#>
#> $geo_version
#> [1] 33
#>
#> $geo_ændret
#> [1] "2026-01-01T22:02:26.282Z"
#>
#> $bbox
#> $bbox[[1]]
#> [1] 11.60212
#>
#> $bbox[[2]]
#> [1] 54.98355
#>
#> $bbox[[3]]
#> [1] 15.31831
#>
#> $bbox[[4]]
#> [1] 56.2052
#>
#>
#> $visueltcenter
#> $visueltcenter[[1]]
#> [1] 12.28011
#>
#> $visueltcenter[[2]]
#> [1] 55.97838
#>
#>
#> $dagi_id
#> [1] "389099"
#>
#> $kode
#> [1] "1084"
#>
#> $navn
#> [1] "Region Hovedstaden"
#>
#> $nuts2
#> [1] "DK01"
#>
#> $href
#> [1] "https://api.dataforsyningen.dk/regioner/1084"
#>
