This API provides an easy way to query the Soil Survey Geographic Database (SSURGO), without the need to create explicit SQL queries.
- Node.js
The API is documented at https://ssurgo.covercrop-data.org/
Prerequisites:
- Node and NPM Download Here
- Git Download Here
- A code editor (we recommend VS Code) Download Here
Steps:
- Open a new Terminal for Mac/Linux or Command Prompt for Windows
- Move to the desired folder
cd /path/to/folder
- Clone this repository into that folder
git clone https://github.com/precision-sustainable-ag/ssurgo-api
- From the Terminal/Command Prompt, move into the cloned directory
cd ssurgo-api
- From the same command window, run
npm install
to install project dependencies. A full list of the dependencies can be found in package.json. If you are running on a windows machine, delete package-lock.json prior to running the below command. - Create a file called .env. Mikah or Rick can provide the keys.
- After the dependencies have been installed and the .env file has been created, run
npm start
to run the code locally. - Open http://localhost.
Date Created: 11/28/2022
Date Last Modified: 04/19/2024