开发者

Can detect the distance (with x, y and z coordinates) from a fixed point in space on Android?

开发者 https://www.devze.com 2023-02-25 05:14 出处:网络
I would like to find the position of an Android device with respect to a fixed point in space. I need a precision close to one or two meters.

I would like to find the position of an Android device with respect to a fixed point in space. I need a precision close to one or two meters. My goal is to determ开发者_如何学Goine the position of the android device user inside a building (a museum), to detect the floor and the room she is in, and - if possible - even a more precise position in the room (to know which painting she is close to). I did already excluded to use GPS, since it is not so precise (expecially with respect to elevation), it only reliably works outdoors, it quickly consumes battery power, and it doesn't return the location quickly. I did already excluded to use Network Location Provider too, since it is even less accurate.


In Android you have three possibilities to detect the location of a Android phone:

1) GPS

2) Network

3) Triangulation

But none of these three possibilities is suited for you're problem. The GPS is the most accurate one, but as you already noticed it is not working in buildings, and it won't be able to differentiate between different floors. The problem is that the accuracy of GPS is at best 3 or 4 meters. The other two possibilities are far less accurate. That's why there isn't a real solution for your problem.

One thing that might be a possibility is the motion sensor. If you know where the user starts, you maybe can use the motion sensor to calculate how many meters the user moves. But I don't think that this is accurate enough.

0

精彩评论

暂无评论...
验证码 换一张
取 消