Orion Context Broker GEOLOCATION,如何处理位置未知?

Orion Context Broker GEOLOCATION, How to deal with location not known?

关于下面的 "position"。我试图找到将 "position" 属性的值定义为位置未知的最佳方法。我的意思是如何表示猎户座数据库中未知的位置。

{
    "contextElements": [
        {
            "type": "City",
            "isPattern": "false",
            "id": "Madrid",
            "attributes": [
                {
                    "name": "position",
                    "type": "geo:point",
                    "value": "LocationNotKnown"
                }
            ]
        }
    ],
    "updateAction": "APPEND"
} 

非常感谢。

目前(直到 Orion 2.3.0)geo:point 属性需要一个有效的点作为值,所以像 "LocationNotKnown" 这样的想法是行不通的。

但是,我们一直在讨论允许 null"" 作为 geo:point(和其他类似属性类型)的有效值的可能性,以表示 "no location"(或 "no date",在 DataTime 的情况下)。您可以加入讨论 on the corresponing github issue 并在那里发表您的意见。

同时,建议的解决方法是删除该属性。因此,如果您的实体包含 "location" 属性(具有有效的 geo:point 作为值),则它已本地化。如果您的实体不包含 "location" 属性未本地化。