FIWARE Orion上下文代理:如何搜索坐标附近的实体?

迈克尔·HH

我正在使用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] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章