我正在使用Orion Context Broker v1.7,并一直尝试使用Postman上的GET列出距某些坐标在1000米以内的实体:
/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"
}
我究竟做错了什么?
我认为您的查询中存在语法错误。在NGSIv2规范的“地理位置查询”部分中:
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
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句