如何获得建筑物iphone内的当前位置 [英] how to get current location inside a building iphone

查看:95
本文介绍了如何获得建筑物iphone内的当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得建筑物内的当前位置。我想开发一个类似于此的应用程序 http://matadornetwork.com/goods/point-inside-indoor-map-application-for-the-iphone-and-android/ (在较小/较不复杂的范围内)并对方法感到疑惑应该采取。是否有任何教程/示例/文章可以指出我正确的方向?谢谢......

How is it possible to obtain the current location inside a building. I want to develop an application similar to this http://matadornetwork.com/goods/point-inside-indoor-map-application-for-the-iphone-and-android/ (on a smaller/less complicated scale) and wondering on the approach i should take. Are there any tutorials/examples/articles that would point me in the right direction? Thanks ...

推荐答案

使用 kCLLocationAccuracyBestForNavigation kCLLocationAccuracyBest 您可以获得相对准确的用户位置[请参阅Apple的 Location Awareness Programming Guide ]。您需要考虑

Using kCLLocationAccuracyBestForNavigation or kCLLocationAccuracyBest you can expect to get a relatively accurate location of your user [see Apple's Location Awareness Programming Guide]. You need to consider that


  • GPS的室内使用将使精确定位变得困难

  • iPod Touch和iPad用户将无法获得准确的位置

  • 我怀疑海拔高度是否足够精确,以便在高楼层之间产生差异

还要考虑你必须收集大量关于你想要绘制的建筑物的信息(不仅要绘制它们的平面图,还要得到它们的精确坐标)。

Also consider you'll have to gather a ton of information on the buildings you want to map (not only draw their floorplan but also get their precise coordinates).

获得所有这些信息之后,在图像上显示一个发光点并不困难,只需将地理坐标转换为更易于处理的事物(在CGRect的范围内)代表建筑物的不同图像)。无需使用mapkit。

After you have all this information, presenting a glowing dot on an image shouldn't be difficult, just a matter of transforming the geo coordinates into something more manageable (at the scale of the CGRect of the different images representing the buildings). No need to use mapkit.

从您链接的软件开始,我怀疑它可以准确地根据用户的当前位置提供结果(但仍然有用)获取电话号码和指南针信息,例如)。不幸的是,这种技术非常有前途。

As of the software your linking to, I have doubts it can accurately delivers results in term of the current location of users (but still being useful to get phone numbers and compass information for example). Unfortunately though, this kind of technology is very promising.

这篇关于如何获得建筑物iphone内的当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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