Skip to content

Commit

Permalink
Merge pull request #730 from dblodgett-usgs/main
Browse files Browse the repository at this point in the history
update nldi URL for new prod API
  • Loading branch information
ldecicco-USGS authored Sep 20, 2024
2 parents f86dd24 + fac07b9 commit 0f1fb39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/AAA.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pkg.env <- new.env()

.onLoad <- function(libname, pkgname) {
suppressMessages(setAccess("public"))
pkg.env$nldi_base <- "https://labs.waterdata.usgs.gov/api/nldi/linked-data/"
pkg.env$nldi_base <- "https://api.water.usgs.gov/nldi/linked-data/"
pkg.env$local_sf <- requireNamespace("sf", quietly = TRUE)
}

Expand Down
2 changes: 1 addition & 1 deletion R/findNLDI.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ get_nldi_sources <- function(url = pkg.env$nldi_base) {
#' @return a data.frame
#' @examplesIf is_dataRetrieval_user()
#' \donttest{
#' base <- "https://labs.waterdata.usgs.gov/api/nldi/linked-data/"
#' base <- ""https://api.water.usgs.gov/nldi/linked-data/"
#' get_nldi(paste0(base, "comid/101"), type = "feature", use_sf = FALSE)
#' get_nldi(paste0(base, "comid/101"), type = "feature", use_sf = TRUE)
#' get_nldi(url = paste0(base, "nwissite/USGS-11120000"), type = "feature", use_sf = TRUE)
Expand Down

0 comments on commit 0f1fb39

Please sign in to comment.