地址類型識別
針對用戶輸入的地址信息,預(yù)測地址片段的POI信息,并且按照三級分類進(jìn)行POI歸類。
測試
您可以在地址標(biāo)準(zhǔn)化產(chǎn)品控制臺進(jìn)行API測試。
請求參數(shù)
名稱 | 類型 | 是否必選 | 示例值 | 描述 |
Action | String | 是 | ClassifyPOI | 系統(tǒng)規(guī)定參數(shù)。 取值:ClassifyPOI |
AppKey | String | 是 | xxxxx | 項目AppKey |
ServiceCode | String | 是 | addrp | 固定值:addrp |
Text | String | 是 | 文一西路969號 | 地址內(nèi)容 |
DefaultProvince | String | 否 | 浙江省 | 默認(rèn)省份 |
DefaultCity | String | 否 | 杭州市 | 默認(rèn)城市 |
DefaultDistrict | String | 否 | 余杭區(qū) | 默認(rèn)行政區(qū) |
返回數(shù)據(jù)
名稱 | 類型 | 示例值 | 描述 |
Data | String | {"poi_category":"商務(wù)住宅#產(chǎn)業(yè)園區(qū)#產(chǎn)業(yè)園區(qū)", "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:表示地址類型識別結(jié)果。 time_used:算法處理耗時 status:狀態(tài) |
RequestId | String | 8BFCC285-0D58-4107-B744-1CE7D3BAF79E | RequestId |
示例
請求參數(shù)
http(s)://[Endpoint]/?Action=ClassifyPOI
&AppKey=Axqwerasdf1a
&ServiceCode=addrp
&Text=杭州市文一西路969號
&<公共請求參數(shù)>
正常返回示例
XML格式
<?xml version="1.0" encoding="UTF-8" ?>
<RequestId>67063FCF-5C4E-5F96-ADE3-7E02522A6E86</RequestId>
<Data>
<poi_category>商務(wù)住宅#產(chǎn)業(yè)園區(qū)#產(chǎn)業(yè)園區(qū)</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":"商務(wù)住宅#產(chǎn)業(yè)園區(qū)#產(chǎn)業(yè)園區(qū)",
"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. | 用戶鑒權(quán)失敗 |
500 | InternalError | A service error occurred. | 服務(wù)內(nèi)部異常 |
400 | InvalidParameter | The parameter is invalid. | 參數(shù)無效 |
404 | ResourceDoesNotExist | The resource does not exist. | 資源不存在 |
429 | Throttling.User | Flow control has been triggered. | 觸發(fā)流控 |
400 | UserStatusInvalid | The user status is invalid. | 用戶狀態(tài)無效 |
訪問錯誤中心查看更多錯誤碼。