| echoWaterGetFacilityInfo | R Documentation | 
Returns a dataframe or simplefeature dataframe of permitted facilities returned by the query. Uses EPA's ECHO API: https://echo.epa.gov/tools/web-services/facility-search-water.
echoWaterGetFacilityInfo(output = "df", verbose = FALSE, ...)
| output | Character string specifying output format.  | 
| verbose | Logical, indicating whether to provide processing and retrieval messages. Defaults to FALSE | 
| ... | Further arguments passed as query parameters in request sent to EPA ECHO's API. For more options see: 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. | 
returns a dataframe or simple features dataframe
## These examples require an internet connection to run
## Retrieve table of facilities by bounding box
echoWaterGetFacilityInfo(p_c1lon = '-96.407563',
p_c1lat = '30.554395',
p_c2lon = '-96.25947',
p_c2lat = '30.751984',
p_pcomp = 'POT',
output = 'df')
## Retrieve a simple features dataframe by bounding box
spatialdata <- echoWaterGetFacilityInfo(p_c2lon = '-96.407563',
p_c1lat = '30.554395',
p_c2lon = '-96.25947',
p_c2lat = '30.751984',
p_pcomp = 'POT',
output = 'sf')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.