-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
63 lines (47 loc) · 1.26 KB
/
README.Rmd
File metadata and controls
63 lines (47 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
library(nlgeocoder)
```
<!-- badges: start -->
[](https://cran.r-project.org/package=nlgeocoder)
[](https://github.com/uRoSConf/nlgeocoder/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
# nlgeocoder
## Installation
You can install nlgeocoder from CRAN with
```{r, eval=FALSE}
install.packages("nlgeocoder")
```
Development version (use at own risk!) can be installed from
github with:
```r
# install.packages("devtools")
devtools::install_github("uRos2018/nlgeocoder")
```
## Example
### Geocoding nl addresses
```{r}
library(nlgeocoder)
address <- nl_geocode( c("Henri Faasdreef 312", "Leidschenveen"))
address[c("weergavenaam")] # this is a sf object
colnames(address)
```
### Suggestions
```{r example}
## basic example code
adres <- nl_suggest("Dam, Amsterdam")
head(adres$response$docs, 2)
```
### lookup
```{r}
obj <- nl_lookup("weg-ab6df5babb15e466f3699b5d2c22e110")
names(obj)
```