2015-09-21 105 views
0

我打电话猎户座具有地理位置过滤器,像这样的:更改订单

(curl localhost:1026/v1/queryContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF 
{ 
    "entities": [ 
    { 
    "type": "City", 
    "isPattern": "true", 
    "id": ".*" 
    } 
    ], 
    "restriction": { 
    "scopes": [ 
    { 
     "type" : "FIWARE::Location", 
     "value" : { 
     "circle": { 
      "centerLatitude": "40.418889", 
      "centerLongitude": "-3.691944", 
      "radius": "13500" 
     } 
     } 
    } 
    ] 
    } 
} 
EOF 

我返回的实体通过增加实体返回的fiware猎户文件上读/注册创建时间。像是解释here

有可能改变这种行为?

+0

最初发布于https://github.com/telefonicaid/fiware-orion/issues/1246,由丹尼尔·冈萨雷斯Lareo撰写 – fgalan

回答

0

更改订单在NGSIv1中是不可能的,但在NGSIv2中已经考虑到了。在fiware-orion存储库中查看this issue,以便监控该功能的实施状态。

编辑:因为猎户座0.28.0可以使用orderBy URL参数来改变这种行为,无论是在NGSIv1(见this piece of documentation)和NGSIv2(见NGSIv2 specification“排序方式”一节)。

+0

可以在https://github.com/telefonicaid/fiware-添加+1评论orion/issues/1103,以显示您对该功能的支持。 – fgalan

+0

答案已更新,有关Orion 0.28.0(即将发布)的信息。 – fgalan