Can be located which floor we are via smart phone GPS?

最后都变了- 提交于 2019-12-06 07:55:17

问题


Is there a way that can decide which floor we are via smart phone?

For example, i m in a building. floor 5;

the native app in my smart phone can know i m on floor 5 and give me some advice about floor 5(navigation to floor 1)


回答1:


With some newer Android phones (e.g., Samsung Galaxy S3), embedded barometric pressure sensors can be used to derive an accurate indoor altitude estimate, which could be transformed into floors (assuming you know which elevation the floor is located at).

See this article on STMicroeletronics pressure sensor:

http://www.engadget.com/2012/09/06/stmicroelectronics-details-pressure-sensor-in-your-galaxy-s-iii/

This app shows altitude based on barometric pressure:

https://play.google.com/store/apps/details?id=com.snakebite.mike.altimeter

Here's the Android API: http://developer.android.com/reference/android/hardware/SensorManager.html#getAltitude(float,%20float)



来源:https://stackoverflow.com/questions/12336463/can-be-located-which-floor-we-are-via-smart-phone-gps

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