地址类型识别

针对用户输入的地址信息,预测地址片段的POI信息,并且按照三级分类进行POI归类。

测试

您可以在地址标准化产品控制台进行API测试

请求参数

名称

类型

是否必选

示例值

描述

Action

String

ClassifyPOI

系统规定参数。

取值:ClassifyPOI

AppKey

String

xxxxx

项目AppKey

ServiceCode

String

addrp

固定值:addrp

Text

String

文一西路969号

地址内容

DefaultProvince

String

浙江省

默认省份

DefaultCity

String

杭州市

默认城市

DefaultDistrict

String

余杭区

默认行政区

返回数据

名称

类型

示例值

描述

Data

String

{"poi_category":"商务住宅#产业园区#产业园区",

"status":"OK","time_used":{"rt":{

"basic_chunking":0.006899595260620117,

"div_search":0.0002086162567138672,

"segment":0.000017642974853515625,

"geocode":0.00011658668518066406,

"poi_category":0.3007323741912842,

"address_correct":0.0022134780883789062,

"complete":0.00004506111145019531,

"poi_predict":0.005274772644042969,

"address_search":0.23588252067565918,

"structure":0.00008559226989746094},"start":1648020067.3567178}}

poi_category:表示地址类型识别结果。

time_used:算法处理耗时

status:状态

RequestId

String

8BFCC285-0D58-4107-B744-1CE7D3BAF79E

RequestId

示例

请求参数

http(s)://[Endpoint]/?Action=ClassifyPOI
&AppKey=Axqwerasdf1a
&ServiceCode=addrp
&Text=杭州市文一西路969号
&<公共请求参数>

正常返回示例

XML格式

<?xml version="1.0" encoding="UTF-8" ?>
  <RequestId>67063FCF-5C4E-5F96-ADE3-7E02522A6E86</RequestId>
  <Data>
    <poi_category>商务住宅#产业园区#产业园区</poi_category>
    <status>OK</status>
    <time_used>
      <rt>
        <basic_chunking>0.006899595260620117</basic_chunking>
        <div_search>0.0002086162567138672</div_search>
        <segment>0.000017642974853515625</segment>
        <geocode>0.00011658668518066406</geocode>
        <poi_category>0.3007323741912842</poi_category>
        <address_correct>0.0022134780883789062</address_correct>
        <complete>0.00004506111145019531</complete>
        <poi_predict>0.005274772644042969</poi_predict>
        <address_search>0.23588252067565918</address_search>
        <structure>0.00008559226989746094</structure>
      </rt>
      <start>1648020067.3567178</start>
    </time_used>
  </Data>

Json格式

{
    "RequestId":"67063FCF-5C4E-5F96-ADE3-7E02522A6E86",
    "Data":{
        "poi_category":"商务住宅#产业园区#产业园区",
        "status":"OK",
        "time_used":{
            "rt":{
                "basic_chunking":0.006899595260620117,
                "div_search":0.0002086162567138672,
                "segment":0.000017642974853515625,
                "geocode":0.00011658668518066406,
                "poi_category":0.3007323741912842,
                "address_correct":0.0022134780883789062,
                "complete":0.00004506111145019531,
                "poi_predict":0.005274772644042969,
                "address_search":0.23588252067565918,
                "structure":0.00008559226989746094
            },
            "start":1648020067.3567178
        }
    }
}

错误码

HttpCode

错误码

错误信息

描述

403

Forbidden.NoAuth

Failed to perform user authentication.

用户鉴权失败

500

InternalError

A service error occurred.

服务内部异常

400

InvalidParameter

The parameter is invalid.

参数无效

404

ResourceDoesNotExist

The resource does not exist.

资源不存在

429

Throttling.User

Flow control has been triggered.

触发流控

400

UserStatusInvalid

The user status is invalid.

用户状态无效

访问错误中心查看更多错误码。