门址标准化是指对用户原始地址,包括缺省地址信息进行补全,同时对行政区划(省/市/区/街道)及路名、路号等错误信息,修改成正确结果,从而对标准地名信息的规范标准化的服务。
测试
您可以在地址标准化产品控制台进行API测试。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
| Action | String | 是 | StreetStd | 系统规定参数。取值: StreetStd | 
| AppKey | String | 是 | Axqwerasdf1a | 项目AppKey | 
| ServiceCode | String | 是 | addrp | 固定值:addrp | 
| Text | String | 是 | 文一西路969号阿里巴巴西溪园区 | 文本内容 | 
| DefaultProvince | String | 否 | 浙江省 | 默认省份 | 
| DefaultCity | String | 否 | 杭州市 | 默认城市 | 
| DefaultDistrict | String | 否 | 余杭区 | 默认行政区 | 
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
| Data | String | {"street_std":"prov=浙江省\tcity=杭州市\tdistrict=余杭区\ttown=五常街道\troad=文一西路\troadno=969号\poi=阿里巴巴西溪园区", "status":"OK", "time_used":{"rt":{"basic_chunking":0.010355472564697266, "StreetStd":0.0001628398895263672,"segment":0.0003783702850341797, "address_correct":0.0030519962310791016, "address_search":0.12972450256347656, "structure":0.000080108642578125},"start":1675067580.6475735} | street_std:门址标准化结果 struct:地址结构化信息 time_used:算法处理耗时 status:状态 | 
| RequestId | String | 3A9AB010-AC38-4E53-9D25-6B97238C2897 | RequestId | 
示例
请求示例
http(s)://[Endpoint]/?Action=StreetStd
&AppKey=Axqwerasdf1a
&ServiceCode=addrp
&Text=文一西路969号阿里巴巴西溪园区
&<公共请求参数>正常返回示例
XML格式
<RequestId>3A9AB010-AC38-4E53-9D25-6B97238C2897</RequestId>
<Data>
    <street_std>prov=浙江省	city=杭州市	district=余杭区	town=五常街道	road=文一西路	roadno=969号</street_std>
    <status>OK</status>
    <time_used>
        <rt>
            <basic_chunking>0.010355472564697266</basic_chunking>
            <street_std>0.0001628398895263672</street_std>
            <segment>0.0003783702850341797</segment>
            <address_correct>0.0030519962310791016</address_correct>
            <address_search>0.12972450256347656</address_search>
            <structure>0.000080108642578125</structure>
        </rt>
        <start>1675067580.6475735</start>
    </time_used>
</Data>
JSON格式
{
  "RequestId": "3A9AB010-AC38-4E53-9D25-6B97238C2897",
  "Data": {
    "street_std":"prov=浙江省\tcity=杭州市\tdistrict=余杭区\ttown=五常街道\troad=文一西路\troadno=969号",
    "status":"OK",
    "time_used":{
        "rt":{
            "basic_chunking":0.010355472564697266,
            "street_std":0.0001628398895263672,
            "segment":0.0003783702850341797,
            "address_correct":0.0030519962310791016,
            "address_search":0.12972450256347656,
            "structure":0.000080108642578125
        },
        "start":1675067580.6475735
    }
  }
}错误码
| 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. | 用户状态无效 | 
访问错误中心查看更多错误码。