Package nlgeocoder. October 8, 2018

Similar documents
Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package fastdummies. January 8, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package gtrendsr. October 19, 2017

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package SEMrushR. November 3, 2018

Package canvasxpress

Package opencage. January 16, 2018

Package datasets.load

Package jpmesh. December 4, 2017

Package validara. October 19, 2017

Package gtrendsr. August 4, 2018

Package calpassapi. August 25, 2018

Package ECctmc. May 1, 2018

Package mapsapi. March 12, 2018

Package repec. August 31, 2018

Package rmapzen. October 7, 2018

Package nngeo. September 29, 2018

Package fitbitscraper

Package dkanr. July 12, 2018

Package qualmap. R topics documented: September 12, Type Package

Package censusapi. August 19, 2018

Package deductive. June 2, 2017

Package osrm. November 13, 2017

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package goodpractice

Package robotstxt. November 12, 2017

Package postgistools

Package lumberjack. R topics documented: July 20, 2018

Package condusco. November 8, 2017

Package rpostgislt. March 2, 2018

Package rnrfa. April 13, 2018

Package editdata. October 7, 2017

Package projector. February 27, 2018

Package tidytransit. March 4, 2019

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Package barcoder. October 26, 2018

Package kirby21.base

Package rzeit2. January 7, 2019

Package githubinstall

Package splithalf. March 17, 2018

Package data.world. April 5, 2018

Package bigqueryr. October 23, 2017

Package bisect. April 16, 2018

Package shinyfeedback

Package jstree. October 24, 2017

Package leaflet.minicharts

Package fst. December 18, 2017

Package rgho. R topics documented: January 18, 2017

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package knitrprogressbar

Package tiler. June 9, 2018

Package RODBCext. July 31, 2017

Package wikitaxa. December 21, 2017

Package chunked. July 2, 2017

Package statsdk. September 30, 2017

Package messaging. May 27, 2018

Package darksky. September 20, 2017

Package facerec. May 14, 2018

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package pdfsearch. July 10, 2018

Package kdtools. April 26, 2018

Package SNPediaR. April 9, 2019

Package rsppfp. November 20, 2018

Package docxtools. July 6, 2018

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package clipr. June 23, 2018

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package virustotal. May 1, 2017

Package ezsummary. August 29, 2016

Package balance. October 12, 2018

Package mapr. April 11, 2017

Package mapedit. R topics documented: March 2, Title Interactive Editing of Spatial Data in R

Package raker. October 10, 2017

Package modmarg. R topics documented:

Package loggit. April 9, 2018

Package IATScore. January 10, 2018

Package readobj. November 2, 2017

Package WordR. September 7, 2017

Package rbraries. April 18, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package guardianapi. February 3, 2019

Package htmlwidgets. July 10, 2017

Package readxl. April 18, 2017

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package patentsview. July 12, 2017

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package datapasta. January 24, 2018

Package rdryad. June 18, 2018

Package internetarchive

Package nyctaxi. October 26, 2017

Package cloudml. June 12, 2018

Package cancensus. February 4, 2018

Package semver. January 6, 2017

Package spark. July 21, 2017

Package slickr. March 6, 2018

Package sfdct. August 29, 2017

Package pangaear. January 3, 2018

Package crossrun. October 8, 2018

Package available. November 17, 2017

Transcription:

Title Geocoding for the Netherlands Version 0.1.3 Package nlgeocoder October 8, 2018 R interface to the open location server API of 'Publieke Diensten Op de Kaart' (<http://www.pdok.nl>). It offers geocoding, address suggestions and lookup of geographical objects. Included is an utility function for displaying leaflet tiles restricted to the Netherlands. Depends R (>= 3.4) License GPL-2 BugReports https://github.com/uros2018/nlgeocoder/issues URL https://github.com/uros2018/nlgeocoder Encoding UTF-8 LazyData true RoxygenNote 6.1.0 Suggests testthat, knitr, rmarkdown, sf, shiny, leaflet VignetteBuilder knitr Imports jsonlite NeedsCompilation no Author Willy Tadema [aut], Egge-Jan Pollé [aut], Edwin de Jonge [aut, cre], Juris Breidaks [ctb] Maintainer Edwin de Jonge <edwindjonge@gmail.com> Repository CRAN Date/Publication 2018-10-08 18:30:06 UTC R topics documented: nlgeocoder-package..................................... 2 addpdoktiles........................................ 3 1

2 nlgeocoder-package addresses.......................................... 3 nl_free............................................ 4 nl_geocode......................................... 5 nl_lookup.......................................... 6 nl_reverse.......................................... 6 nl_suggest.......................................... 7 Index 8 nlgeocoder-package nlgeocoder package The nlgeocoder package provides a R wrapper around the pdok webservice. Details it allows to geocode data using the following functions: nl_geocode: geocode a vector of addresses. nl_free: find possible matches for one address. nl_suggest: find possible suggestions for one address. nl_lookup: lookup information of object found in nl_suggest. Author(s) Maintainer: Edwin de Jonge <edwindjonge@gmail.com> Authors: Willy Tadema Egge-Jan Pollé Other contributors: Juris Breidaks [contributor] See Also Useful links: https://github.com/uros2018/nlgeocoder Report bugs at https://github.com/uros2018/nlgeocoder/issues

addpdoktiles 3 addpdoktiles Leaflet function to add pdok tiles This function adds PDOK tile layers to leaflet. It is a small wrapper around addtiles that sets the correct urls for the layers. addpdoktiles(map, type = c("brt", "aerial", "pastel", "gray"), group = match.arg(type),...) map type Details group leaflet object one of the PDOK tiles: currently: "brt", "aerial", "pastel" or "gray" group is set equal to type... Passed to addtiles. PDOK provides tiles that can be used as a tile layer in several geovisualization tools including leaflet. The layers differ from other tile layers such as Openstreetmap, Google and cartomap in the following manner: The tiles are restricted to the Netherlands: tiles accross the Dutch border are "grayed out". This is useful for cartographic applications that are restricted to Dutch geo-information. The tiles are open source and based on open sourced geo-information. addresses Several Points of Interest (POI) that are included for test purposes. POI, points of interest Address, Uncleaned address information. addresses Format An object of class data.frame with 5 rows and 2 columns.

4 nl_free nl_free Free geocoding search 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. nl_free(q, rows = NULL, start = NULL, fq = NULL, lat = NULL, lon = NULL, type = NULL, fl = NULL, df = NULL,..., verbose = FALSE) q query to geocoding service. rows maximum number of rows to be returned. Default is 10. start start index.default is 0. fq lat lon type fl df 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. 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 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 restrict the results on a specific type. fields to return. 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

nl_geocode 5 Examples l <- nl_free("henri Faasdreef 312") l$response$numfound l$response$docs["weergavenaam"] nl_geocode Geocode adresses 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. 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) location output messaging type Details Value string with location to be found Should the output be a data.frame or sf object in wgs84 or Rijksdriehoekstelsel format? Print the urls fired to the webserver (consistent with ggmap::geocode ) 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) type can be one or more of the following: "provincie", "gemeente", "woonplaats", "weg", "postcode", "adres", "perceel", "hectometerpaal", "wijk", "buurt", "waterschapsgrens", "appartementsrecht". The return type can be specified and can be of type "sf" or "data.frame", depending on the value of output.

6 nl_reverse Examples data("addresses") r <- nl_geocode(addresses$address) r["weergavenaam"] names(r) nl_lookup Look up a geo object Retrieve detailed properties of a geo object found with nl_suggest or nl_free. nl_lookup(id,..., output = c("list", "raw"), verbose = FALSE) id Value of object found in nl_suggest or nl_free... extra parameters are passed to the lookup service of pdok. output verbose What type of output should be returned should the function print message while retrieving the data? Depending on the value of output the raw search results in R format or the properties of the specific object as a R list object. Examples obj <- nl_lookup("weg-f633e85f07eda4e68a00fb13f9d128f5") names(obj) obj$weergavenaam nl_reverse experimental reverse api experimental reverse api nl_reverse()

nl_suggest 7 nl_suggest Get a list of suggestions for geolocations in NL nl_suggest returns a list of suggestions for a location description. nl_suggest(q,..., rows = NULL, type = NULL, verbose = FALSE, fl = NULL, sort = NULL, qf = NULL, bq = NULL) q search terms that should be geolocated... parameters passed to geolocation service rows maximum number of rows to be returned. Default is 10. type verbose fl sort qf bq Details Value restrict type of geolocation to a type (see details for possible types) Should the functions print messages on what it is retrieving. the columns that should be returned (aka select on columms of result) how the data should be sorted the fields that should be queried the boosting of the query. type can be one or more of the following: "provincie", "gemeente", "woonplaats", "weg", "postcode", "adres", "perceel", "hectometerpaal", "wijk", "buurt", "waterschapsgrens", "appartementsrecht". The result of the pdok suggest webservice converted to a R list object. Examples sug <- nl_suggest("henri Faasdreef") # how many objects have a score? sug$response$numfound # get suggestions sug$response$docs

Index Topic datasets addresses, 3 addpdoktiles, 3 addresses, 3 addtiles, 3 data.frame, 5 leaflet, 3 nl_free, 2, 4, 5, 6 nl_geocode, 2, 4, 5 nl_geocode_df (nl_geocode), 5 nl_geocode_rd (nl_geocode), 5 nl_lookup, 2, 6 nl_reverse, 6 nl_suggest, 2, 6, 7 nlgeocoder (nlgeocoder-package), 2 nlgeocoder-package, 2 sf, 5 8