POI預(yù)測(cè)
輸入地址信息,據(jù)行政區(qū)劃、路名路號(hào)等信息預(yù)測(cè)其POI名。
測(cè)試
您可以在地址標(biāo)準(zhǔn)化產(chǎn)品控制臺(tái)進(jìn)行API測(cè)試。
請(qǐng)求參數(shù)
名稱 | 類型 | 是否必選 | 示例值 | 描述 |
Action | String | 是 | PredictPOI | 系統(tǒng)規(guī)定參數(shù)。 取值:PredictPOI。 |
AppKey | String | 是 | Axqwerasdf1a | 項(xiàng)目AppKey |
ServiceCode | String | 是 | addrp | 固定值:addrp |
Text | String | 是 | 文一西路969號(hào) | 文本內(nèi)容 |
DefaultProvince | String | 否 | 浙江省 | 默認(rèn)省份 |
DefaultCity | String | 否 | 杭州市 | 默認(rèn)城市 |
DefaultDistrict | String | 否 | 余杭區(qū) | 默認(rèn)行政區(qū) |
返回?cái)?shù)據(jù)
名稱 | 類型 | 示例值 | 描述 |
Data | String | {"poi_predict":"阿里巴巴西溪園區(qū);西溪園區(qū);阿里巴巴;淘寶城;阿里巴巴集團(tuán);阿里巴巴西溪親橙里","status":"OK","time_used":{"rt":{"div_search":0.000037670135498046875,"segment":0.00001239776611328125,"geocode":0.0001304149627685547,"address_correct":0.0041658878326416016,"complete":0.00006031990051269531,"poi_predict":0.009544134140014648,"address_search":0.07369542121887207,"structure":0.005392313003540039},"start":1619321042.0037758}} |
|
RequestId | String | E0627DDE-28D7-4C00-A611-E047DF81AF05 | RequestId |
示例
請(qǐng)求示例
http(s)://[Endpoint]/?Action=PredictPOI
&AppKey=Axqwerasdf1a
&ServiceCode=addrp
&Text=文一西路969號(hào)
&<公共請(qǐng)求參數(shù)>
正常返回示例
XML格式
<RequestId>E064C7AC-AAD9-49A2-BE2B-CAF0E227DC44</RequestId>
<Data>
<poi_predict>阿里巴巴西溪園區(qū);西溪園區(qū);阿里巴巴;淘寶城;阿里巴巴集團(tuán);阿里巴巴西溪親橙里</poi_predict>
<status>OK</status>
<time_used>
<rt>
<div_search>0.000037670135498046875</div_search>
<segment>0.00001239776611328125</segment>
<geocode>0.0001304149627685547</geocode>
<address_correct>0.0041658878326416016</address_correct>
<complete>0.00006031990051269531</complete>
<poi_predict>0.009544134140014648</poi_predict>
<address_search>0.07369542121887207</address_search>
<structure>0.005392313003540039</structure>
</rt>
<start>1619321042.0037758</start>
</time_used>
</Data>
JSON格式
{
"RequestId": "E064C7AC-AAD9-49A2-BE2B-CAF0E227DC44",
"Data": {
"poi_predict": "阿里巴巴西溪園區(qū);西溪園區(qū);阿里巴巴;淘寶城;阿里巴巴集團(tuán);阿里巴巴西溪親橙里",
"status": "OK",
"time_used": {
"rt": {
"div_search": 0.000037670135498046875,
"segment": 0.00001239776611328125,
"geocode": 0.0001304149627685547,
"address_correct": 0.0041658878326416016,
"complete": 0.00006031990051269531,
"poi_predict": 0.009544134140014648,
"address_search": 0.07369542121887207,
"structure": 0.005392313003540039
},
"start": 1619321042.0037758
}
}
}
錯(cuò)誤碼
HttpCode | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
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ù)無(wú)效 |
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)無(wú)效 |
訪問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。