USACE / USACE/cwms-data-api

Basin / Location association

Open
#609 27 comments 0 reactions 2 assignees View on GitHub

@adamkorynta is already working on this.

Since Apr 21, 2026.

approved-W912HQ25F0116 enhancement needs-follow-up question
Dominant language
Java
Stars
28
Forks
25
Avg merge
4d 22h
Merged PRs (30d)
20

Description

I think I know the answer to this question, but I'm asking to promote a discussion and standardization in the CWMS database.

Asking the question with Access to Water in mind.

Is there a way to get a list of basins, and then turn around and get a list of locations that are associated with that basin?

I am unaware of a functional basins endpoint (looking at the swagger docs). Even if that worked, the next need of actually getting a list of locations for each basin does not appear available. Location Groups looks interesting, but I'm afraid the application of groups, names, usage, etc would vary between offices and therefore not be consistent to pull at a national level.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.