物流面單信息提取
對(duì)物流信息中人名、地名、電話(huà)號(hào)碼進(jìn)行識(shí)別和提取。
測(cè)試
您可以在地址標(biāo)準(zhǔn)化產(chǎn)品控制臺(tái)進(jìn)行API測(cè)試。
請(qǐng)求參數(shù)
名稱(chēng) | 類(lèi)型 | 是否必選 | 示例值 | 描述 |
Action | String | 是 | ExtractExpress | 系統(tǒng)規(guī)定參數(shù)。 取值:ExtractExpress。 |
AppKey | String | 是 | Axqwerasdf1a | 項(xiàng)目AppKey |
ServiceCode | String | 是 | addrp | 固定值:addrp |
Text | String | 是 | 收貨人:張先生;手機(jī)號(hào)碼:1338888****;所在地區(qū):**省**市****區(qū)**街道;詳細(xì)地址:***村16號(hào)樓**** | 文本內(nèi)容 |
DefaultProvince | String | 否 | 浙江省 | 默認(rèn)省份 |
DefaultCity | String | 否 | 杭州市 | 默認(rèn)城市 |
DefaultDistrict | String | 否 | 余杭區(qū) | 默認(rèn)行政區(qū) |
返回?cái)?shù)據(jù)
名稱(chēng) | 類(lèi)型 | 示例值 | 描述 |
Data | String | {"express_extract":{"house_info":"16號(hào)樓****","poi_info":"***村","town":"**街道","city":"**市","district":"***區(qū)","tel":"1338888****","addr_info":"***村16號(hào)樓****","per":"張先生","prov":"**省"},"status":"OK","time_used":{"rt":{"express_extract":0.0001595020294189453,"structure":0.029137134552001953},"start":1619321964.6946392}} |
|
RequestId | String | E0627DDE-28D7-4C00-A611-E047DF81AF05 | 請(qǐng)求ID |
示例
請(qǐng)求示例
http(s)://[Endpoint]/?Action=ExtractExpress
&AppKey=Axqwerasdf1a
&ServiceCode=addrp
&Text=收貨人:張先生;手機(jī)號(hào)碼: 1338888****;所在地區(qū):**省**市***區(qū)**街道;詳細(xì)地址:***村16號(hào)樓****
&<公共請(qǐng)求參數(shù)>
正常返回示例
XML格式
<RequestId>5047DAC3-475F-4361-B8B8-B2A9F4D33247</RequestId>
<Data>
<express_extract>
<house_info>16號(hào)樓****</house_info>
<poi_info>**新村</poi_info>
<town>**街道</town>
<city>**市</city>
<district>***區(qū)</district>
<tel>1888888****</tel>
<addr_info>***村16號(hào)樓****</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號(hào)樓****",
"poi_info":"***村",
"town":"**街道",
"city":"**市",
"district":"***區(qū)",
"tel":"1338888****",
"addr_info":"***村16號(hào)樓****",
"per":"張先生",
"prov":"**省"
},
"status":"OK",
"time_used":{
"rt":{
"express_extract":0.0001595020294189453,
"structure":0.029137134552001953
},
"start":1619321964.6946392
}
}
}
錯(cuò)誤碼
HttpCode | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
403 | Forbidden.NoAuth | Failed to perform user authentication. | 用戶(hù)鑒權(quán)失敗 |
500 | InternalError | A service error occurred. | 服務(wù)內(nèi)部異常 |
400 | InvalidParameter | The parameter is invalid. | 參數(shù)無(wú)效 |
404 | ResourceDoesNotExist | The resource does not exist. | 資源不存在 |
429 | Throttling.User | Flow control has been triggered. | 觸發(fā)流控 |
400 | UserStatusInvalid | The user status is invalid. | 用戶(hù)狀態(tài)無(wú)效 |
訪(fǎng)問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。