nlgeocoder (version 0.1.3)

nl_geocode: Geocode adresses

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

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)

Value

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

Details

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

Examples

Run this code
# NOT RUN {
data("addresses")

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

Run the code above in your browser using DataCamp Workspace