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

GeolocationControl组件 onLocationSuccesss事件返回district和street为空 #170

Open
lijie0214 opened this issue Aug 5, 2021 · 6 comments

Comments

@lijie0214
Copy link

GeolocationControl组件 onLocationSuccesss事件返回district和street为空

addressComponent: {
city: "广州市"
district: ""
province: "广东省"
street: ""
}

@jaywcjlove
Copy link
Member

@lijie0214 是不是你 akay 配置错了?

@lijie0214
Copy link
Author

@lijie0214 是不是你 akay 配置错了?

没有错呀 按照文档里这么使用的


@jaywcjlove
Copy link
Member

@lijie0214 那你需要看看 百度文档了,这个是百度API返回的数据。

@lijie0214
Copy link
Author

@lijie0214 那你需要看看 百度文档了,这个是百度API返回的数据。

本地开发时使用chrome浏览器 demo里面是可以获取到district和street, 我自己 demo里面的代码到本地开发后就获取到的是空了, 只有safari浏览器获取的是正常的, 很奇怪不知道什么原因

@jaywcjlove
Copy link
Member

@lijie0214 我也不知道,这个是百度 SDK 的方法返回的结果。

@jaywcjlove
Copy link
Member

@lijie0214 所以不是不是看看百度文档,需要账号设置啥?

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

2 participants