Generate water information code
Generate corresponding water information code based on watershed information or POI information
Query Parameters
typestring
Type of entity to generate MA for (river | subbasin | poi).
Value in
"river" | "subbasin" | "poi"key?string
POI key (required when type is not river or subbasin).
basincode?integer
Watershed code (required for river/subbasin).
subbasincd?string
Subbasin code (required for river/subbasin).
binstrval?integer
Binary tree encoding value component (required for river).
binstrlen?integer
Binary tree encoding length component (required for river).
level?integer
River level (required for river).
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://loading/api/ma/generate?type=river&key=21&basincode=3261&subbasincd=001&binstrval=0&binstrlen=32&level=7"{
"ma": "MA.1002.123.101201/123AB.456.789/HS0102.OPE12345N6789"
}{
"detail": "Missing required parameters"
}{
"detail": "Resource not found"
}{
"detail": "Server error"
}