Identify the nearest perennial stream/flowline and its downstream network to verify a septic system's required setback from surface water
domain: api.water.usgs.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Call the hydrolocation endpoint: /nldi/linked-data/hydrolocation?coords=POINT({lon} {lat}) to snap the site to the nearest NHDPlus flowline (within 200m) or get a raindrop-trace result if farther.
Read the returned measure and reachcode identifying the specific stream segment nearest the site.
Compute straight-line or trace distance from the site coordinates to the returned flowline geometry to check against your state's septic-to-surface-water setback requirement.
Optionally call /linked-data/comid/{comid}/navigation/DM/flowlines to see the downstream flow path if evaluating cumulative watershed impact.
Combine with StreamStats basin characteristics for a fuller site drainage picture where needed.
Known gotchas
The 200m snap tolerance means very rural sites far from any mapped flowline will fall back to a raindrop trace, which is less precise and elevation-model dependent.
NLDI indexes NHDPlus medium-resolution flowlines -- small intermittent ditches or first-order channels may not be represented at all.
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?