Documentation for "/api/v1/wimn/sites":

Documentation score: Route: 100% Fields: 100%

Description:

MPCA sites. A site is a location, such as a manufacturing plant or cleanup site, where the MPCA carries out an activity. Sites can be registered, licensed, permitted, or owned by the MPCA. Sites often, but not always, represent facilities. Examples include: food processing plants, construction sites, dental offices, powerplants, landfills, and areas of contaminated soil.

Search parameters:

One or more of the following search parameters need to be specified in order to retrieve data:
Parameter nameRequiredDescription
activeSite Flag indicating whether the site is active or not ("Y", "N").
activityTypeCode Database code for this activity type (Ref:/api/doc/v1/wimn/activity-types)
activitySubtypeName Database code for this activity subtype (Ref:/api/doc/v1/wimn/activity-subtypes)
alternateId Other names and IDs by which this activity has been known.
cityName The name of the municipality where the site is located.
countyCode The FIPS code for the county that the site is located in. (Ref:/api/doc/v1/wimn/counties)
countyName The name of the county. (Ref:/api/doc/v1/wimn/counties)
huc8 The 8-digit hydrological unit code for the watershed that the site is in. (Ref:/api/doc/v1/wimn/watersheds)
legislativeDistrict The legislative district that the site is in.
nameSearchString The name of the site name, activity name, organization name, or other identifier to search by.
neighborhood Search for sites using the city, county, township, or zip code that a site is found in.
ownerName The name of the owner of the site.
searchString The name of the site name, activity name, organization name, or other identifier to search by.
siteId The query id for the site.
siteName The name of the site.
stateCode The two-character state code where the site is located.
institutionalControl Indicates whether or not there are institutional controls at the site ("Y", "N").
zipCode The zip code of the site.

Additional parameters:

The following, optional, parameters may be specified:
Parameter nameDescription
format The desired return format. Valid formats are: {json, jsonp, text, csv, xls, ods, and tab}. The default is json.
callback The JSONP callback function name (Note that format needs to be "jsonp").
fields The comma-separated-list of the field names to return from the query. The default is to return all available fields.
nullValue Value to substitute in place of null values. The default is to return null values as "null" (per JSON.org).
limit The number of records to limit the result set to. Behaves like the SQL standard LIMIT clause.
offset Used with Limit-- the record number to start retrieving from. Behaves like the SQL standard OFFSET clause.

Result Set Definitions:

Field nameDescription
activeSite Flag indicating whether the site is active or not ("Y", "N").
ctuName The name of the city/township/unincorporated-area that the site is located in.
addressLine1 The first line of the street address.
addressLine2 The second line of the street address.
cityName The name of the municipality where the site is located.
coordinateMethod The method used to determine the locational (lat/long) coordinates.
countyCode The FIPS code for the county that the site is located in.
countyName The name of the county.
huc8 The 8-digit hydrological unit code for the watershed that the site is in.
industrialClassification Industrial classification (NAICS or SIC) for the site.
lat The latitude of the site in decimal degrees.
legislativeDistrict The legislative district that the site is in.
long The longitude of the site in decimal degrees.
ownerName The name of the owner of the site.
siteId The query id for the site.
siteName The name of the site.
stateCode The two-character state code where the site is located.
watershedCode The MN DNR code for the major watershed that the site is located in.
watershedName The name of the major watershed that the site is located in.
watershedUrl The link to the MPCA web page for the watershed that the site is located in.
institutionalControl Indicates whether or not there are institutional controls at the site ("Y", "N").
zipCode The zip code of the site.

Example Queries: