- Fixed bug in
clusterByDistance()
which could fail when incoming tibbles had very few rows.
- Updated
location_getSingleElevation_USGS()
to use new USGS API.
- Add uniqueness of
locationID
tovalidateLocationTable()
. table_save()
now supports a vector ofoutputType
formats and will save the location table in multiple formats.
- Documentation fixes for CRAN submission.
- Added
clusterByDistance()
andtable_addClustering()
functions. - Renamed
zip
topostalCode
in the core metadata. location_createID()
now defaults to the"geohash"
algorithm.- Renamed
mazama_initialize()
toinitializeMazamaSpatialUtils()
. - Updated example data to October, 2023.
- Added "Developer Style Guide" vignette.
- Improved documentation.
- Added
algorithm argument
to location_createID() to select between "digest" and "geohash". - Addressed CRAN package documentation issue.
- Added
na.rm = TRUE
to all calls toany(...)
in varioustable_~()
functions.
- Updated
location_getSingleElevation_USGS()
to use the new web service at https://apps.nationalmap.gov/pqs/.
- Updated documentation in
location_getSingleElevation_USGS()
.
- Updated
table_updateColumn()
to ignore incominglocationIDs
that are not found in thelocationTbl
.
- Added
table_getDistanceFromTarget()
and edited the description of other distance functions to make clear what each does.
- Removed
validateMazamaSpatialUtils()
test fromtable_addCoreMetadata()
as this function just adds empty columns and does not need any spatial data.
- Updated
table_addOpenCageInfo()
to handle address components that are missing from the openCage results.
- Updated
table_findAdjacentLocations()
to only only return unique locations and to ensure they are returned in order of separation distance. - Corrected behavior when using
jitter = 0
intable_leaflet()
andtable_leafletAdd()
. - Added
table_filterByDistance()
.
- Ensure that address components are of class "character" throughout the code.
- Added
location_getOpenCageInfo()
to get OpenCage information for a single location.
- Updated
location_getCensusBlock()
to addcensusYear
argument. - Minor documentation improvements.
- Added
table_addOpenCageInfo()
with support for reverse geocoding using tidygeocoder. mazama_initialize()
now only loads the high resolution datasets used inlocation_initialize()
.
- Function signatures now provide multiple options where appropriate and these
are checked with
match.arg()
. - Updated
table_load()
looks for .rda and then .csv versions. - Updated
table_save()
to avoid deprecated arguments toreadr::write_csv()
.
- Removed unused dependency on digest.
- All examples now meet the CRAN directive to avoid stopping if a web resource is unavailable.
- Improved error messages in
table_load()
andtable_save()
. - Removed
table_export()
. Usetable_save()
instead.
- Removed
~APIKey()
functionality. Now importing this fromMazamaCoreUtils
0.4.10. - Optimized
table_getLocationID()
andtable_getNearestDistance()
by only calculating distance for unique locations. This helps tremendously whenlongitude
andlatitude
come from "tidy" dataframes.
- Fix timezone assignment bug in
table_initializeExisting()
.
- Improved documentation.
- Refactored
table_leaflet()
andtable_leafletAdd()
with improved defaults and more flexibility.
- Rename
county
tocountyName
. (This change more closely matches spatial metadata found in other systems and fits with the pattern of~Code
/~Name
pairs in MazamaSpatialUtils as is the case withcountryCode/CountryName
andstateCode/stateName
.) - Regenerated example datasets.
- Updated tests to reflect regenerated example datasets.
- Fixed bug in
table_findAdjacentDistances()
when only two locations are adjacent. - Re-exporting location validation functions from MazamaCoreUtils.
table_updateColumn()
now ignoresNA
values inlocationID
.
- Using MazamaCoreUtils version of
validateLonLat()
,validateLonsLats()
,createLocationID()
. - Removed dependency on sp package.
Version 0.2.x focuses on usability improvements after initial work with the package.
- Renamed
radius
todistanceThreshold
throughout for clarity. - Updated
table_initializeExisting()
to only perform spatial searches where data are missing in the incoming table. This greatly speeds up performance. - New
table_leafletAdd()
function to make it easier to compare "known locations" tables." - New
table_addCoreMetadata()
function adds columns ofNA
values for any missing core metadata but does not perform any spatial calculations. - New
table_findAdjacentLocations()
function returns a tibble of all locations that are too close (i.e. separated by <distanceThreshold
). table_findOverlappingLocations()
renamed totable_findAdjacentDistances()
.- Added
measure
argument totable_findAdjacentLocations()
,table_findAdjacentDistances()
,table_getLocationID()
andtable_getNearestDistance()
. - Added
na.rm
argument tovalidateLonsLats()
. - Improved validation of arguments in all
table_~()
functions. - Update function arguments to consistently use
locationTbl
whenever an incoming table includeslongitude
andlatitude
variables. - New
table_leaflet()
function to display locations and metadata.
- Updated to require geodist 0.0.7.
- Updated
location_getSingleAddress_Photon()
to remove revgeo dependency. - Updated to require geodist 0.0.6.007 to handle errors finding longitude and latitude columns in the passed in tibble.
geodist::geodist()
is now always called withmeasure = "geodesic"
to avoid warning messages fromgeodist()
about inaccuracies withmeasure = "cheap"
(thegeodist()
default).mazama_initialize()
now installs required datasets if they are missing.- Updated to require MazamaSpatialUtils 0.7.
- Added unit test for
table_findOverlappingLocations()
.
- Added
table_initializeExisting()
for fast conversion of an existing table of spatial metadata into a standardized "known location" table. - Added
table_findOverlappingLocations()
to help choose an appropriate radius when initializing from an existing metadata table. - Added
addressService
argument totable_addLocation()
,table_addSingleLocation() and
location_initialize()` to skip the address step that requires web services.
- Documentation tweaks.
- New
location_getCensusBlock()
function. - New
location_getSingleAddress_TexasAM()
function.
- Added support for API keys with
setAPIKey()
andgetAPIKey()
.
- Updated checks and explicit instructions for installing required spatial data.
- Changed examples from \code{\dontrun} to \code{\donttest} per CRAN suggestion.
- Corrections to introductory vignette.
- Added introductory vignette.
- Massive refactoring of function names.
- Example datasets and unit tests.
- Removed
getLoations()
- Added
getLocationID()
andgetNearestLocation()
- Various cleanup/refactor
- Initial Release