确定当前位置里面或外面IndoorAtlas建筑 [英] Determine if current location is inside or outside building with IndoorAtlas

查看:278
本文介绍了确定当前位置里面或外面IndoorAtlas建筑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用indoorAtlas SDK。我已经赢得成功,显示使用indoorAtlas当前位置和布局规划。但是它有一些怪异的结果。

I'm using indoorAtlas SDK. I already succed to show current location and floorplan using indoorAtlas. But it has some weird result.

如果我在里面的建筑,我列出的floorplanid和地点ID,它提供了正确的当前位置。但是,当我就是楼外,我试图找到当前位置它给出结果在平面布置图图,但它给出了一些随机位置。

If i'm inside building that i listed the floorplanid and venue id, it gives the correct current location. But when i'm outside that building and i'm trying to locate current location it gives the result in the floorplan map but it gives some random location.

有什么办法给一些通知或动作,我是外区,我是上市floorplanid和venueid?

Is there any way to give some notification or action that i'm outside in area that i'm listed floorplanid and venueid ?

推荐答案

在当前SDK没有什么会给你直接回答你的问题。我想说的是,目前你最好的工具与平台的结合位置返回位置更新(ServiceState级)的getUncertainty() - 方法。实验不确定性的值(以米为半径)的时候看到这将是最好的开始了IndoorAtlas的室内场所信任的平台位置,并得出结论:用户已退出建设。在更高级的版本,对你的平面图边缘移动时(或更好,但对退出),你可以更确保过渡(IN - >出,输出>中)可能发生。

In current SDK there is nothing that would give you straight answer to your question. I'd say that your best tools at the moment are the getUncertainty() -method in returned location update (ServiceState -class) combined with platform locations. Experiment with uncertainty value (radius in meters) to see when it would be best to start trusting platform locations over IndoorAtlas's indoor locations and to conclude that user has exited the building. In a more advanced version, when moving towards the edges of your floor plan (or better yet towards the exits) you could be more sure that transition (in->out, out->in) is likely to take place.

您也可以使用地理围栏结合这个逻辑(的http://developer.android.com/reference/com/google/android/gms/location/GeofencingApi.html)在一种或多种方式,例如使用地理围栏作为IndoorAtlas服务应该打开,因为用户可以进入建筑物,输入的时候,动态地创建一个更大的区域范围设定为保障,以帮助你的算法来检测用户已退出建设和IndoorAtlas指示服务可以被关闭。

You could also combine this logic with geofences (http://developer.android.com/reference/com/google/android/gms/location/GeofencingApi.html) in one or more ways. E.g. use geofence as an indication that IndoorAtlas services should be turned on as user may enter a building and when entered, dynamically create a larger geofence as a safeguard to help your algorithm to detect that user has exited building and IndoorAtlas service can be turned off.

希望这有助于找到解决方案。

Hope this helps to find your solution.

这篇关于确定当前位置里面或外面IndoorAtlas建筑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆