返回地图

解析水信息码

将水信息码解析为结构化数据,包含专有部分、标准部分和扩展部分

GET
/api/ma/resolve

Query Parameters

mastring

需要解析的水信息码

Response Body

application/json

application/json

application/json

curl -X GET "https://loading/api/ma/resolve?ma=MA.1002.3261.101201%2F3261001.0.1715%2FHS0701.OPE1062035N0380739.RV"

{
  "ma": "MA.1002.3261.101201/3261001.0.1715/HS0701.OPE1062035N0380739.RV",
  "proprietary": {
    "root": "MA",
    "special": 1002,
    "register": 3261,
    "schema": 10,
    "resolution": 12,
    "version": 1
  },
  "standard": {
    "basincode": 3261,
    "subbasincd": "001",
    "binstrval": 0,
    "binstrlen": 1715
  },
  "extension": {
    "type": "river",
    "strahler": 7,
    "level": 1,
    "outletLongitude": 106.2035,
    "outletLatitude": 38.0739
  }
}
{
  "detail": "Invalid MA code format"
}
{
  "detail": "POI configuration not found"
}