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
srid
is provided this should be the lattitude.- y
The Y coordinate to geocode. If no
srid
is 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
WGS84
is used. The options areETRS89
,UTM32
andWGS84
. 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
reverse("regioner", x = 12.58515, y = 55.68324)
#> → Requesting `regioner - reverse` from DAWA
#> $ændret
#> [1] "2024-10-04T21:02:54.978Z"
#>
#> $geo_version
#> [1] 31
#>
#> $geo_ændret
#> [1] "2024-10-04T21:02:54.978Z"
#>
#> $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.27937
#>
#> $visueltcenter[[2]]
#> [1] 55.97239
#>
#>
#> $dagi_id
#> [1] "389099"
#>
#> $kode
#> [1] "1084"
#>
#> $navn
#> [1] "Region Hovedstaden"
#>
#> $nuts2
#> [1] "DK01"
#>
#> $href
#> [1] "https://api.dataforsyningen.dk/regioner/1084"
#>