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

iOS逆地理编码 #96

Closed
Yieron opened this issue Sep 4, 2019 · 2 comments
Closed

iOS逆地理编码 #96

Yieron opened this issue Sep 4, 2019 · 2 comments
Labels
bug Something isn't working ios Only for ios

Comments

@Yieron
Copy link

Yieron commented Sep 4, 2019

iOS确实第一次永远获不到逆地理编码,而且设置setLocatingWithReGeocode(true);后,使用Geolocation.getCurrentPosition也永远获取不到逆地理编码,使用watchPositio后,再调用getCurrentPosition会返回两次

@Yieron Yieron added bug Something isn't working ios Only for ios labels Sep 4, 2019
@Yieron
Copy link
Author

Yieron commented Sep 4, 2019

目前我的解决方案是,先设置setLocatingWithReGeocode(true),然后调用Geolocation .watchPosition(),然后调用Geolocation.clearWatch() 结束监听。这样使用Geolocation.getCurrentPosition就能拿到你地址信息了。

@ihwf
Copy link

ihwf commented Nov 18, 2019

第一次确实获取不到, 照着楼主的方法也获取不到

@Yieron Yieron closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios Only for ios
Projects
None yet
Development

No branches or pull requests

2 participants