对物流信息中人名、地名、电话号码进行识别和提取。
测试
您可以在地址标准化产品控制台进行API测试。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | ExtractExpress | 系统规定参数。 取值:ExtractExpress。 |
AppKey | String | 是 | Axqwerasdf1a | 项目AppKey |
ServiceCode | String | 是 | addrp | 固定值:addrp |
Text | String | 是 | 收货人:张先生;手机号码:1338888****;所在地区:**省**市****区**街道;详细地址:***村16号楼**** | 文本内容 |
DefaultProvince | String | 否 | 浙江省 | 默认省份 |
DefaultCity | String | 否 | 杭州市 | 默认城市 |
DefaultDistrict | String | 否 | 余杭区 | 默认行政区 |
返回数据
名称 | 类型 | 示例值 | 描述 |
Data | String | {"express_extract":{"house_info":"16号楼****","poi_info":"***村","town":"**街道","city":"**市","district":"***区","tel":"1338888****","addr_info":"***村16号楼****","per":"张先生","prov":"**省"},"status":"OK","time_used":{"rt":{"express_extract":0.0001595020294189453,"structure":0.029137134552001953},"start":1619321964.6946392}} |
|
RequestId | String | E0627DDE-28D7-4C00-A611-E047DF81AF05 | 请求ID |
示例
请求示例
http(s)://[Endpoint]/?Action=ExtractExpress
&AppKey=Axqwerasdf1a
&ServiceCode=addrp
&Text=收货人:张先生;手机号码: 1338888****;所在地区:**省**市***区**街道;详细地址:***村16号楼****
&<公共请求参数>
正常返回示例
XML格式
<RequestId>5047DAC3-475F-4361-B8B8-B2A9F4D33247</RequestId>
<Data>
<express_extract>
<house_info>16号楼****</house_info>
<poi_info>**新村</poi_info>
<town>**街道</town>
<city>**市</city>
<district>***区</district>
<tel>1888888****</tel>
<addr_info>***村16号楼****</addr_info>
<per>张先生</per>
<prov>**省</prov>
</express_extract>
<status>OK</status>
</time_used>
<rt>
<express_extract>0.0001595020294189453</express_extract>
<structure>0.029137134552001953</structure>
</rt>
<start>1619321964.6946392</start>
</time_used>
</Data>
JSON格式
{
"RequestId":"5047DAC3-475F-4361-B8B8-B2A9F4D33247",
"Data":{
"express_extract":{
"house_info":"16号楼****",
"poi_info":"***村",
"town":"**街道",
"city":"**市",
"district":"***区",
"tel":"1338888****",
"addr_info":"***村16号楼****",
"per":"张先生",
"prov":"**省"
},
"status":"OK",
"time_used":{
"rt":{
"express_extract":0.0001595020294189453,
"structure":0.029137134552001953
},
"start":1619321964.6946392
}
}
}
错误码
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. | 用户状态无效 |
访问错误中心查看更多错误码。