Android indoor directions with Google api

耗尽温柔 提交于 2019-12-18 18:32:13

问题


I currently have an app which displays a map fragment and can display navigation to a given point. The indoor maps is enabled and the building I'm trying to use does have indoor maps, but it only navigates to outside the building even when the transport mode is set to walking.

Is there currently any way to do this?


回答1:


It seems that the Google Maps Android API does not support this feature for now. Even if you select the correct travel mode, which should be walking, the route is traced on the nearest road and not on the indoor path.

I'm also waiting for this option to be released, since it is currently possible to get this outcome using Google's own Maps web app.




回答2:


My graduate project is about indoor positioning when GPS is not available in android. The answer is yes, but there is not easy way. Hard way to do this but accuracy not good as good the GPS. There are two main approach to get location.

Approaches

1. Sensor-Fusion: This method for the get relative location. Using built-in sensors (gyroscope, accelerometer, compass) calculate the distance & direction over time. So you get the new location adding this value to old location. It also called dead-reckoning.

2. Wi-fi Signal Strength: If there are two or more a.p. which locations are known before, use the signal strengths to estimate your location. This idea a bit similar to how GPS works.

Weak Sides

1. Sensor-Fusion: Calculating new location error(e0) occur. When calculating next new location new error(e1) occurs again. So you get new location with e0+e1. I mean error groves exponentially over time.

2. Wi-fi Signal Strength: Some items can block the a.p. So you get weak signal strength and calculate wrong location.

Finally I use first approach for short time(10sec). Second approach to correct location(every 10sec). So you get the best results for long & short time.

Source

  • Deeper explaination at this pdf.
  • open source android app using first approach.


来源:https://stackoverflow.com/questions/28677292/android-indoor-directions-with-google-api

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