tidygeocoder 1.0.5 2021-11-02

  • Corrected documentation for the quiet parameter in geo() and reverse_geo().
  • To fix an issue that occurred on Mac CRAN checks (#152) the vignette is now precomputed so that it does not run during R CMD check (ie. devtools::check()).
  • Changed some default parameter values to facilitate the use of the memoise package (#154, @dpprdan).

tidygeocoder 1.0.4 2021-10-17

New Features

  • Added support for the Geoapify service (thanks @dpprdan). This service supports batch geocoding, but this capability is currently not implemented in tidygeocoder (see #119).
  • Added the functions geocode_combine() and geo_combine() to combine the results of multiple geocoding queries. These functions are meant to replace geo(method = "cascade").
  • Deprecated method = "cascade" and the cascade_order, param_error, and batch_limit_error arguments for geo().
  • Deprecated the return_type, geocodio_v, mapbox_permanent, mapquest_open, iq_region, and here_request_id arguments in favor of the new api_options parameter for the geo() and reverse_geo() functions.
  • Added a api_options = list(geocodio_hipaa = TRUE/FALSE)) option to geo() and reverse_geo() functions to allow the toggling of the HIPAA-compliant Geocodio API endpoint (#137).

Console Output

  • Added a progress bar for single input geocoding (ie. not batch geocoding) (#38). The progress bar can be disabled with progress_bar = FALSE (a new parameter for the geo() and reverse_geo() functions). Similar to the readr package, progress bars are shown by default if the session is interactive and the code being run is not part of an RStudio Notebook chunk or R Markdown knitting process.
  • Some console messages related to geocoding queries are now shown by default. These messages show the number of inputs (addresses or coordinates) submitted, the geocoding service used, and how long the query took to execute. To suppress these messages you can set quiet = TRUE (a new parameter for the geo() and reverse_geo() functions).
  • Default arguments with options() for verbose, quiet, and progress_bar. For instance options(tidygeocoder.verbose = TRUE) changes the default value of verbose from FALSE to TRUE.

Bugfixes

  • Fixed a bug for Bing forward geocoding geo() when no results are found (#112).
  • Fixed a bug that occurred in reverse geocoding when passing a set of exclusively duplicate coordinates (ie. 1 unique coordinate) (#129).

tidygeocoder 1.0.3 2021-04-19

New Features

  • Added support for reverse geocoding with the new reverse_geo() and reverse_geocode() functions.
  • Added support for the OpenCage geocoding service (#67) (thanks @dpprdan).
  • Added support for the HERE (#74), Mapbox (#71), MapQuest (#85), TomTom (#76), Bing (#92), and ArcGIS (#98) geocoding services (thanks @dieghernan). Note that the batch geocoding capabilities for the Mapbox and ArcGIS services are not currently implemented (see #73 and #102).
  • Added the mapbox_permanent, here_request_id, and mapquest_open parameters to the geo() and reverse_geo() functions.
  • The limit argument can now be used with the “google” and “census” methods to control the number of results returned. These two services do not have limit arguments in their APIs so the limit is applied after the results are returned.
  • batch_limit is now automatically set according to the specified geocoding service unless otherwise specified.

Other Changes

  • Changed default method to "osm" (Nominatim) for the geo() function (it was previously "census").
  • The geo_<method> functions are now deprecated.
  • Added the return_input argument to geocode() and reverse_geocode() to provide more flexibility when using dataframes as inputs in geocoder queries.
  • limit = NULL can now be passed to use the default limit value for the geocoding service.
  • Added the min_time_reference, batch_limit_reference, api_key_reference, and api_info_reference datasets to more accessibly store values for min_time, batch_limit, the names of environmental variables for API keys, and information for documentation (such as API documentation links).
  • geocode() and reverse_geocode() now require limit = 1 (default) unless return_input = FALSE. This fixes a bug where geocoding results could be misaligned with the input dataset when limit > 1. (#88).
  • An error is now thrown by default if the number of inputs exceeds the batch query limit. For forward geocoding, this behavior can be toggled with the new batch_limit_error argument in the geo() function and batch_limit_error is set to FALSE if method = "cascade". When batch_limit_error is FALSE then the batch query size is limited to the batch limit and executed (which was the default behavior in the previous version).
  • The address_list argument of query_api() has been renamed to input_list to reflect that it is used for both forward and reverse queries when using the Geocodio service for batch geocoding.
  • The query_api() function now returns a named list which contains the response content and the HTTP status code. The geo() and reverse_geo() functions now use the HTTP status code directly to determine if a response is valid.
  • Added external tests to more thoroughly test the package with live queries (internal package tests don’t run queries).
  • Added functions to generate package documentation from built-in datasets (ex. the methods documentation in geo() and reverse_geo()).
  • Converted package documentation from standard roxygen syntax to Markdown.

tidygeocoder 1.0.2 2021-01-18

  • Added support for the Google geocoding service (#34) (thanks @chris31415926535).
  • An error is now thrown if invalid parameters are passed to geocoding services (the parameters checked are limit, address, street, city, county, state, postalcode, and country) (#53). This behavior can be toggled with the new param_error parameter in geo() (or geocode()).
  • Leading zeros on Census FIPs geography columns are now preserved (#47).
  • Bug fix for custom_query argument with Geocodio batch geocoding (#48).
  • Bug fix for vctrs datatype error with cascade method (#49).
  • Added more comprehensive testing for internal package functions such as package_addresses, unpackage_addresses, and get_api_query (#58).
  • Per CRAN request, order() is no longer called on data frames (#57).

tidygeocoder 1.0.1 2020-08-12

  • Fixed an issue that prevented installation on R < 4.0. (#35).
  • Updated package documentation. Added examples to utility functions query_api() and get_api_query().

tidygeocoder 1.0.0 2020-07-15

New Functionality

  • New geocoding services: Support for the Geocodio and Location IQ services has been added.
  • Batch geocoding (geocoding multiple addresses per query) is now available for both the Census and Geocodio services.
  • Full results from the geocoding services can now be returned by using full_results = TRUE. This will return all data provided by the geocoding service instead of just latitude and longitude coordinates. Additionally, the return_type = 'geographies' argument for the Census geocoder will return geography columns.
  • Address component arguments: As an alternative to specifying a single-line address, address component arguments are now supported (street, city, county, postalcode, country).
  • Customizable queries: Geocoding queries can now be customized using the limit and custom_query arguments (see the geo() function for details).
  • Smart address handling: Only unique addresses are passed to geocoding services, but the rows in the original data are preserved.
  • Usage limits: The OSM and IQ services by default are now limited to submitting one query per second (per the min_time argument in geo()) to respect usage limits. This should fix the past issue of users being locked out of the OSM service due to usage limit violations.
  • The cascade method can now be customized by using the cascade_order argument (see geo() documentation)
  • Custom API URLs can now be specified. This will allow users to specify their own local Nominatim server, for instance.
  • The parameters passed to the geocoding service are now displayed to the console when verbose = TRUE

Under the Hood Improvements

  • Reduced dependencies: The package has been overhauled so that the only remaining dependencies are tibble, dplyr, jsonlite, and httr. The package no longer has direct dependencies on tmaptools, stringr, purrr, tidyr, and rlang.
  • All geocoding queries are now directly executed by httr. The inbuilt api_parameter_reference dataset is used to map standard “generic” parameter names to the parameter names used by each specific geocoding service.
  • All geocoding functionality has been centralized in the geo() function. Users can still use geocode(), geo_osm(), and geo_census() as before. However, geo_osm() and geo_census() are now just convenience functions that call geo() and geocode() passes all addresses to geo() for geocoding.

tidygeocoder 0.2.5 2020-03-22

Per CRAN request, fixed an issue where the example for R/geocode.R failed. The only change required was to add a library(dplyr) statement.

tidygeocoder 0.2.4 2019-10-25

Initial CRAN release. Per CRAN request:

  • Replaced print() with warning() to make suppressing console output possible.
  • Replaced \dontrun with \donttest in .R files