ssurgo-api

This API provides an easy way to query the Soil Survey Geographic Database (SSURGO), without the need to create explicit SQL queries.

Table of Contents:

Tech Stack

  • Node.js

Features

The API is documented at https://ssurgo.covercrop-data.org/

Local Installation Steps

Prerequisites:

  1. Node and NPM Download Here
  2. Git Download Here
  3. A code editor (we recommend VS Code) Download Here

Steps:

  1. Open a new Terminal for Mac/Linux or Command Prompt for Windows
  2. Move to the desired folder cd /path/to/folder
  3. Clone this repository into that folder git clone https://github.com/precision-sustainable-ag/ssurgo-api
  4. From the Terminal/Command Prompt, move into the cloned directory cd ssurgo-api
  5. 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.
  6. Create a file called .env. Mikah or Rick can provide the keys.
  7. After the dependencies have been installed and the .env file has been created, run npm start to run the code locally.
  8. Open http://localhost.

Date Created: 11/28/2022

Date Last Modified: 04/19/2024