internetofwater / nldi-services

Network Linked Data Index Navigation Web Services
https://waterdata.usgs.gov/blog/nldi-intro/
Creative Commons Zero v1.0 Universal
19 stars 15 forks source link

Require distance input for upstream with tributaries and downstream with diversions. #180

Closed dblodgett-usgs closed 4 years ago

dblodgett-usgs commented 4 years ago

Since the UT and DD queries can be really expensive, I think we should require a distance input to be entered explicitly.

We should add swagger documentation that indicates that this is a very expensive query and should not be executed in parallel.

This change in behavior would apply to the new "navigation" endpoint only.

dblodgett-usgs commented 4 years ago

https://labs-dev.wma.chs.usgs.gov/api/nldi/linked-data/nwissite/USGS-01105585/navigation/UT/flowlines?f=json is a 400

https://labs-dev.wma.chs.usgs.gov/api/nldi/linked-data/nwissite/USGS-01105585/navigation/UT/flowlines?distance=10&f=json does work though!

@jkreft-usgs I'm happy -- do you want an error message in addition to the 400?