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

非常感谢这个小爬虫,提一个很小的改进建议:百度地图使用的是自有坐标系系统 #2

Open
pnck opened this issue May 18, 2022 · 0 comments

Comments

@pnck
Copy link

pnck commented May 18, 2022

参见百度地图文档 ,地理编码 API 默认返回的是百度的 bd09ll 坐标,在使用其它平台地图的服务(比如geojson是从datav高德那边来的)会产生偏移。

虽然我大概粗略地用几个区域测了下,省市级定位是偏不出去的,不过毕竟也说不好会不会有什么预期外的问题,所以最好还是使用比较统一的坐标系统: 在请求 API 的地方加上 &ret_coordtype=gcj02ll 即可。

改动很小就不提PR了,开个 Issue 提醒看到的大家留意一下有这么回事。

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

1 participant