Skip to content

Commit

Permalink
update nldi URL for new prod API
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Sep 20, 2024
1 parent f86dd24 commit fac07b9
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 fac07b9

Please sign in to comment.