Skip to content

Commit

Permalink
use geojson_sf
Browse files Browse the repository at this point in the history
  • Loading branch information
mps9506 committed Aug 5, 2018
1 parent 0c70888 commit 38dfcc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/water.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#' @param \dots Further arguments passed as query parameters in request sent to EPA ECHO's API. For more options see: \url{https://echo.epa.gov/tools/web-services/facility-search-water#!/Facility_Information/get_cwa_rest_services_get_facility_info} for a complete list of parameter options. Examples provided below.
#' @return returns a dataframe or simple features dataframe
#' @import httr
#' @importFrom geojsonsf geojson_sf
#'
#' @export
#' @examples \donttest{
Expand Down Expand Up @@ -59,7 +60,7 @@ echoWaterGetFacilityInfo <- function(output = "df",
queryDots <- queryList(valuesList)

## build the request URL statement
path <- "echo/cwa_rest_services.get_facilities"
path <- "echo/cwa_rest_services.get_facility_info"
query <- paste("output=JSON", queryDots, sep = "&")
getURL <- requestURL(path = path, query = query)

Expand Down

0 comments on commit 38dfcc4

Please sign in to comment.