2017-10-15 24 views
1

我使用獵戶座語境經紀V1.7和一直在努力列表中內使用的郵差GET某些座標千米,任何單位:FIWARE Orion上下文代理:如何搜索靠近座標的實體?

/v2/entities?georel=near&maxDistance=1000&geometry=point&coords=52.3766134;4.8971626 

我得到的迴應是:

{ 
    "error": "BadRequest", 
    "description": "Invalid query: georel /near/ without either minDistance nor maxDistance" 
} 

我做錯了什麼?

回答

0

我認爲您的查詢中存在語法錯誤。從NGSIv2 specification節 「地理查詢」:

georel=near;maxDistance:1000&geometry=point&coords=-40.4,-3.5 

所以您的查詢應該是:

GET /v2/entities?georel=near;maxDistance:1000&geometry=point&coords=52.3766134;4.8971626 
相關問題