如何使用python获取google地图图像“无标签卫星视图”

2024-06-16 15:37:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我知道googlemap静态API,它可以将地图作为图像返回。但它返回静态视图,我需要谷歌地图的卫星视图,而我的系统没有标签。我一直在寻找解决方案,但找不到。
任何帮助都将不胜感激。在


Tags: 图像视图api系统地图静态标签解决方案
1条回答
网友
1楼 · 发布于 2024-06-16 15:37:44

如果您的目的是通过官方服务获取静态地图卫星图像并隐藏其上的所有标签(除了Google徽标和版权),您可以将map type设置为satellite,并应用使用静态地图API隐藏所有标签的样式。例如

https://maps.googleapis.com/maps/api/staticmap?center=39.279117%2C-89.881745&zoom=18&size=600x400&maptype=satellite&style=feature%3Aall%7Celement%3Alabels%7Cvisibility%3Aoff&key=YOUR_API_KEY

否则,如果你想下载和存储你需要的图片,缝合他们或删除版权标签的解决方案可能不符合谷歌地图API服务条款。在

请参阅服务条款的以下部分。在

第10.1(a)段

No access to APIs or Content except through the Service. You will not access the Maps API(s) or the Content except through the Service. For example, you must not access map tiles or imagery through interfaces or channels (including undocumented Google interfaces) other than the Maps API(s).

这意味着你不能为了你的需要而丢弃卫星图像并将其存储在你的存储器中。在

第10.5(g)段

No removing, obscuring, or altering terms of service, links, or proprietary rights notices. You will not:

  • remove, obscure, or alter any Google terms of service or any links to or notices of those terms, or any copyright, trademark, or other proprietary rights notices; or

  • falsify or delete any author attributions, legal notices, or other labels of the origin or source of material.

最后,第10.5(b)段

No derivative works. You will not modify or create a derivative work based on any Content unless expressly permitted to do so under these Terms. For example, the following are prohibited: (i) creating server-side modification of map tiles; (ii) stitching multiple static map images together to display a map that is larger than permitted in the Maps APIs Documentation; or (iii) tracing or copying the copyrightable elements of Google’s maps or building outlines and creating a new work, such as a new mapping or navigation dataset.

我希望我的回答能解决你的问题。在

相关问题 更多 >