在 Android 中调整自定义地图的方向
我需要制作一个应用程序来使用博物馆地图和 Android 指南针在博物馆中导航。该应用程序应该帮助用户前往地图上的一些预设位置。 是否可以? 地图的格式应该是什么?
谢谢
七月
I need to do an application to navigate in a museum, using a map of the museum and Android's compass. The app should help the user go to some pre-set positions on the map.
Is it possible?
What should be the format of the map?
thanks
jul
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将能够通过使用陀螺仪和指南针来获取手机方向,但是定位会有点困难。
由于您将在室内,因此您很可能无法获得精确位置 (GPS),因为您的手机很可能无法看到 GPS 卫星。这意味着您的手机将不得不依赖于路线位置(网络),这对于建筑物内部的准确度来说有点困难。
我在大学做过一个项目,可以非常准确地跟踪建筑物内人员的位置,但这不是基于 Android 操作系统的。如果博物馆里有多个wifi热点,wifi三角测量可能是可能的(我不知道是否可以)。据我所知,这是准确实施此类项目的唯一方法。
祝你好运!
You will be able to get the phone orientation by using the gyroscope and compass, it will however be a little harder to do the locations.
Because you will be indoors, chances are that your will not be able to get a fine location (GPS) because your phone will most probably not have a line of sight to a GPS satellite. This will mean your phone will have to rely on course location (network) which in terms of being accurate inside of a building is a bit of a stretch.
I did a project in University where I could pretty accurately track the location of a person inside of a building, but this was not based on the Android OS. If there are multiple wifi hotspots in the museum, wifi triangulation would probably be possible (I don't know if it is). To my knowledge, this would be the only way to accurately implement a project like this.
Good luck!