nl_geocode: Geocode adresses

Description Usage Arguments Details Value Examples

Description

nl_geocode returns for a vector of addresses the most probable object/location. This function is more user friendly than the barebones webservices (nl_free), and uses the same function signature as ggmap::geocode.

Usage

1
2
3
4
5
6
7
8
nl_geocode(location, output = c("wgs84", "rd", "data.frame"),
  messaging = FALSE, type = "adres", ..., verbose = messaging)

nl_geocode_rd(location, messaging = FALSE, type = "adres", ...,
  verbose = messaging)

nl_geocode_df(location, messaging = FALSE, type = "adres", ...,
  verbose = messaging)

Arguments

location

string with location to be found

output

Should the output be a data.frame or sf object in wgs84 or Rijksdriehoekstelsel format?

messaging

Print the urls fired to the webserver (consistent with 'ggmap::geocode')

type

restrict the type of object that is returned from the service, see details for possible types.

...

will be passed to nl_free.

verbose

identical to messaging (consistent with other nlgeoder functions)

Details

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

Value

The return type can be specified and can be of type "sf" or "data.frame", depending on the value of output.

Examples

1
2
3
4
5
data("addresses")

r <- nl_geocode(addresses$Address)
r["weergavenaam"]
names(r)

edwindj/nllocation documentation built on May 27, 2019, 3:30 p.m.