Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定位问题 #1

Closed
fatesinger opened this issue Jun 5, 2017 · 4 comments
Closed

定位问题 #1

fatesinger opened this issue Jun 5, 2017 · 4 comments

Comments

@fatesinger
Copy link

安卓权限已获取,无法获取到当前定位信息,locationEnabled已设置为true,onLocation事件,nativeEvent的值为 0。

@qiuxiang
Copy link
Owner

qiuxiang commented Jun 5, 2017

那是因为 Key 的问题,高德地图 SDK 需要正确的配置 Key 才能进行定位,详见
http://lbs.amap.com/api/android-sdk/guide/create-project/get-key。

@fatesinger
Copy link
Author

果然,我记得修改过了key,不知道什么时候覆盖了。感谢。(′⌒`)

@fanyongbing
Copy link

定位点会自己乱动,这是什么情况?wifi,4G都会 @qiuxiang

@qiuxiang
Copy link
Owner

qiuxiang commented Jul 5, 2017

这是 sdk 的问题,之前用高德地图的时候就发现了,因为基于 wifi 和 基站的定位是不准的,误差大概在 50 米左右,nativeEvent 里有返回定位精度。

如果需要更精准的定位,只能是 GPS,也就是在开阔的室外才行,精度大概在3米左右,基本就不会出现定位漂移的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants