Supporting APIs
These endpoints are currently on the physical weather server’s Postgres database. They are subject to change, based on the effectiveness (or cost) of implementing them in Directus:
https://developweather.covercrop-data.org/mlra?lat=39.032056&lon=-76.873972
Outputs the Major Land Resource Area (MLRA) information at the given lat/lon coordinates:
name, mlrarsym, lrrsym, lrrnamehttps://developweather.covercrop-data.org/mlra?lat=39.032056&lon=-76.873972&polygon=true
Outputs MLRA information, along with its (multi)polygon:
name, mlrarsym, lrrsym, lrrname, polygon, polygonarrayhttps://developweather.covercrop-data.org/mlra?mlra=136
Outputs MLRA information for the given mlra code, including a list of all counties and states within the MLRA:
name, mlrarsym, lrrsym, lrrname, counties, states, state_codes, county_fips, state_fips
(This endpoint also accepts the &polygon=true parameter.)https://developweather.covercrop-data.org/county?lat=39.032056&lon=-76.873972
Outputs county information at the given lat/lon coordinates:
county, state, state_code, countyfips, statefips
(This endpoint also accepts the &polygon=true parameter.)https://developweather.covercrop-data.org/watershed?lat=39.032056&lon=-76.873972
Outputs watershed information at the given lat/lon coordinates:
huc12, name, huc10, huc10name, huc8, huc8name, huc6, huc6name, huc4, huc4name, huc2, huc2name, areaacres, areasqkm
There are additional columns, but I’m unsure of their purpose.
(This endpoint also accepts the &polygon=true parameter.)https://developweather.covercrop-data.org/watershed?huc=020700100804
Outputs watershed information for the given HUC.
Given a HUC12, it outputs a single record. For HUC2, HUC4, etc., it outputs all HUC12 records within their watersheds.
(This endpoint also accepts the &polygon=true parameter.)https://developweather.covercrop-data.org/vegspec/characteristics?state=AL&output=html
Outputs state characteristics data.https://developweather.covercrop-data.org/vegspec/props
Outputs known properties for parameters.https://developweather.covercrop-data.org/vegspec/symbols
Outputs a list of all PLANTS symbols.https://developweather.covercrop-data.org/vegspec/records?output=html
Listing of PLANTS tables, number of records, and table sizes.https://developweather.covercrop-data.org/vegspec/structure?output=html
Outputs the PLANTS schema.https://developweather.covercrop-data.org/vegspec/state?state=TN&output=html
Outputs a state’s “exceptions” data, including MLRA and CPS.https://developweather.covercrop-data.org/plantstable?table=plant_growth_requirements&output=html
Outputs a PLANTS database table.
Directus endpoints (obsolete)
Trevor Puckett imported the original Access database into Directus, and these endpoints have public read-only access.
Note that these endpoints are case-sensitive, and these were based on the MLRAs active at the time, some of which may have changed:
https://data.vegspec.org/items/Conservation_Species_Practices
https://data.vegspec.org/items/Conservation_Species_StateCommonName
https://data.vegspec.org/items/Conservation_Species_States (currently empty)
https://data.vegspec.org/items/Releases-Species_with_Unmatched_Plant_Symbols
https://data.vegspec.org/items/Species-State-MLRA_wSciName (currently empty)
By default, Directus outputs 100 records, but you can output the entire dataset by appending ?limit=-1