Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aleksanderbl29/dawar

An API Wrapper Package for DAWA - The Danish Address Web API
https://github.com/aleksanderbl29/dawar

dawa-api r r-package

Last synced: 2 months ago
JSON representation

An API Wrapper Package for DAWA - The Danish Address Web API

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
fig.width = 12,
fig.height = 9
)
```

# dawaR dawaR website

[![CRAN status](https://www.r-pkg.org/badges/version/dawaR)](https://CRAN.R-project.org/package=dawaR)
[![r-universe](https://aleksanderbl29.r-universe.dev/badges/dawaR)](https://aleksanderbl29.r-universe.dev/dawaR)
[![R-CMD-check](https://github.com/aleksanderbl29/dawaR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/aleksanderbl29/dawaR/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/aleksanderbl29/dawaR/graph/badge.svg)](https://app.codecov.io/gh/aleksanderbl29/dawaR)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)

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

## Installation

```{r check_cran, include=FALSE}
if (!require(available)) install.packages("available")
is_on_cran <- !available::available_on_cran("dawaR")
```

```{r cran_instruct, echo=FALSE, results='asis', eval=is_on_cran}
cat("You can install `{dawaR}` from CRAN with:")
```

```{r cran_code, eval=FALSE, include=is_on_cran}
install.packages("dawaR")
```

```{r r_universe_instruct, echo=FALSE, results='asis'}
if (is_on_cran) {
cat("Or you can install the latest pre-release version of `{dawaR}` from r-universe with:")
} else if (!is_on_cran) {
cat("You can install `{dawaR}` from r-universe with:")
}
```

```{r r_universe, eval=FALSE, include=!is_on_cran}
install.packages(
"dawaR",
repos = c(
aleksanderbl29 = "https://aleksanderbl29.r-universe.dev",
getOption("repos")
)
)
```

You can install the latest development version of `{dawaR}` from [GitHub](https://github.com/aleksanderbl29/dawaR) with:

``` r
# install.packages("devtools")
devtools::install_github("aleksanderbl29/dawaR@devel")
```

If you install the package in an environment configured with [`renv`](https://rstudio.github.io/renv/index.html) on MacOS, please consult `vignette("renv-issues")` to ensure that `get_map_data()` works as intended.

## Usage

Be sure to see the [getting started](https://dawar.aleksanderbl.dk/articles/dawaR.html) and the [guide on how to make maps with {dawaR}](https://dawar.aleksanderbl.dk/articles/printing_maps.html).

## 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](https://dataforsyningen.dk/data/4924).

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.