Google 地图地理编码 API v2 返回的地标数量是否有限制?
那么,问题是:Google Maps Geocoding API v2 返回的地标数量是否有限制?我在网上搜索,但没有明确说明这个限制(如果存在)。然而,无论输入多么常见,我从未见过地理编码 API 返回超过 10 个地标(每个俄罗斯城镇都有列宁街,但我 iPhone 上的 Maps.app 仅返回 9 个地标)。对此有什么想法吗?
So, the question is: is there a limit on number of placemarks returned by Google Maps Geocoding API v2? I searched through the web but this limit (if it exists) is nowhere explicitly stated. However I've never seen Geocoding API return more than 10 placemarks regardless of how common the input is (there is Lenin str. in every Russian town but Maps.app on my iPhone returns just 9 placemarks). Any thoughts on that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一种方法可以绕过限制,即使用地图顶部的“在 Google 地球中查看”链接将地图导出为 kml 文件。您需要将此 kml 文件托管在可公开访问的服务器中,然后通过在 Google 地图中搜索 KML 文件的 URL 将其加载到地图中。
协作地图的问题是每次更新“我的地图”地图时都需要重复该过程。
There is a way to by-pass the limit by exporting the map as a kml file using the View in Google Earth link at the top of the map. You will need to host this kml file in a publicly accessible server and you load it into maps by searching the Google map for the URL of the KML file.
The problem for a collaboration map is that the process will need to be repeated every time that the My Map map is updated.