nl_suggest: Get a list of suggestions for geolocations in NL

Description Usage Arguments Details Value Examples

Description

nl_suggest returns a list of suggestions for a location description.

Usage

1
2
nl_suggest(q, ..., rows = NULL, type = NULL, verbose = FALSE,
  fl = NULL, sort = NULL, qf = NULL, bq = NULL)

Arguments

q

search terms that should be geolocated

...

parameters passed to geolocation service

rows

maximum number of rows to be returned. Default is 10.

type

restrict type of geolocation to a type (see details for possible types)

verbose

Should the functions print messages on what it is retrieving.

fl

the columns that should be returned (aka select on columms of result)

sort

how the data should be sorted

qf

the fields that should be queried

bq

the boosting of the query.

Details

type can be one or more of the following: "provincie", "gemeente" , "woonplaats", "weg", "postcode", "adres", "perceel", "hectometerpaal", "wijk", "buurt", "waterschapsgrens", "appartementsrecht".

Value

The result of the pdok suggest webservice converted to a R list object.

Examples

1
2
3
4
5
6
7
sug <- nl_suggest("Henri Faasdreef")

# how many objects have a score?
sug$response$numFound

# get suggestions
sug$response$docs

uRos2018/nlgeocoder documentation built on May 29, 2019, 9:16 a.m.