how to get current location inside a building iphone

做~自己de王妃 提交于 2019-12-25 17:03:29

问题


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 ...


回答1:


Indoor Navigation System for Handheld Devices shows up a few possibilities how indoor navigation could work.




回答2:


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

  • Indoor use of the GPS will make precise location difficult
  • iPod Touch and iPad users won't be able to get precise location
  • I doubt altitude will be precise enough to make the difference between floors in high rises

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).

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.



来源:https://stackoverflow.com/questions/6915306/how-to-get-current-location-inside-a-building-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!