nlgeocoder (version 0.1.3)

nl_free: Free geocoding search

Description

This function wraps the "free" pdok service, and allows for free search. For syntax and examples see the documentation of pdok. A more easy/convenient but simpler function for geocoding is nl_geocode.

Usage

nl_free(q, rows = NULL, start = NULL, fq = NULL, lat = NULL,
  lon = NULL, type = NULL, fl = NULL, df = NULL, ...,
  verbose = FALSE)

Arguments

q

query to geocoding service.

rows

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

start

start index.Default is 0.

fq

apply a filter to the query, e.g. fq=bron:BAG. The default filter is 'type:(municipality OR town OR neiborhood OR road OR postcode OR adress)'. Use fq=* to remove the default filter.

lat

enter a decimal degree (latitude, in WGS84). Together with lon this will define a point to search from. Search results will be ordered by distance from this point. For example: 'lat=52.09&lon=5.12'

lon

enter a decimal degree (longitude, in WGS84). Together with lat this will define point to search from. Search results will be ordered by distance from this point. For example: 'lat=52.09&lon=5.12'

type

restrict the results on a specific type.

fl

fields to return.

df

field that should be search in.

...

parameters passed to the pdok webservice

verbose

logical should the function print out messages.

Value

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

See Also

nl_geocode

Examples

Run this code
# NOT RUN {
l <- nl_free("Henri Faasdreef 312")
l$response$numFound
l$response$docs["weergavenaam"]
# }

Run the code above in your browser using DataCamp Workspace