生成水信息码
根据流域信息或 POI 信息生成对应的水信息码
Query Parameters
typestring
类型
Value in
"river" | "subbasin" | "..."key?string
POI 键值(当 type 不为 river 或 subbasin 时必填)
basincode?string
流域编码(当 type 为 river 或 subbasin 时必填)
subbasincd?string
流域分区编码(当 type 为 river 或 subbasin 时必填)
binstrval?string
河段二叉树编码取值分量(当 type 为 river 或 subbasin 时必填)
binstrlen?string
河段二叉树编码长度分量(当 type 为 river 或 subbasin 时必填)
level?string
河流级别(当 type 为 river 或 subbasin 时必填)
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": "POI not found"
}{
"detail": "POI configuration not found"
}