Learn R Programming

⚠️There's a newer version (0.3.0) of this package.Take me there.

dawaR

The goal of {dawaR} is to make access to the Danish Web Address API convenient for many more users.

Installation

You can install {dawaR} from CRAN with:

install.packages("dawaR")

Or you can install the latest pre-release version of {dawaR} from r-universe with:

install.packages(
  "dawaR",
  repos = c(
    aleksanderbl29 = "https://aleksanderbl29.r-universe.dev",
    getOption("repos")
  )
)

You can install the latest development version of {dawaR} from GitHub with:

# install.packages("devtools")
devtools::install_github("aleksanderbl29/dawaR")

If you install the package in an environment configured with renv on MacOS, please consult vignette("renv-issues") to ensure that get_map_data() works as intended.

Usage

Be sure to see the getting started and the guide on how to make maps with {dawaR}.

DAWA will be phased out

The government entity that maintains the Danish Web Address API has disclosed that the API will be phased out at some point. When that time comes, this package will become deprecated and I will have another package ready to provide the same functionality. The service that is to replace DAWA is called Datafordeleren (The Data Distribution) and is in the works. Some functionality in relation to The Central Register of Buildings (BBR) has already been moved to the new service.

If you know how to read danish (or use machine-translation) you can keep yourself up to date on this page.

But no worries! It does not sound like the shutdown of DAWA will happen anytime soon or without due notice. You can read more about this and read the history of updates in vignette("status"). Any minor updates will be shown there. Major ones will be on this page. Both will be communicated with lifecycle in the functions.

Copy Link

Version

Install

install.packages('dawaR')

Monthly Downloads

171

Version

0.2.7

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Aleksander Bang-Larsen

Last Published

December 8th, 2024

Functions in dawaR (0.2.7)

autocomplete

Base function for interacting with autocomplete of sections.
connection_check

Check that R has access to resources at https://api.dataforsyningen.dk
get_map_data

Fetch map data to use with {sf}.
available_sections

List of available sections for dawa()
get_data

Get data from section
dawa

Base API function
reverse

Base function for interacting with reverse geocoding of sections.
status_check

Check that all DAWA services are operational