谷歌地图和pdf [英] Google maps and pdf

查看:118
本文介绍了谷歌地图和pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编程方面,我需要将谷歌地图映射到自动生成的PDF文件。为此,我需要将地图转换为某种图像格式(jpg,png等)。如何做到这一点?



我使用Python和Django,如果在google地图库中构建是不够的。



感谢

解决方案

我认为唯一的方法是将图像导入到PDF中,图像来自 Google Maps静态API



不过,它将与其 T &安培; C b
必须事先获得Google(或适用的特定内容提供商)的书面授权,Google以上的许可才能遵守以下所有限制。除第7节或Maps APIs文档中明确允许外,您不得(也不得允许其他人):

(yada yada)



10.2复制,翻译,修改,创建衍生作品或公开展示任何内容或其任何部分(例如,禁止以下内容:(a)创建服务器端修改地图图块;以及(b)将多个静态地图图像拼接在一起,以显示比Maps API文档中允许的地图更大的地图;


10.8使用Static Maps API除了在Web浏览器中的实现之外;


Programaticly, I need to include a google Maps map to automaticly generated pdf files. For this, I need to convert the map into some image format (jpg, png etc). How can it be done ?

I am using Python and Django if build in google maps library is not sufficient.

Thanks

解决方案

I think the only way is to import images into the PDF, the images coming from the Google Maps static API.

However, it's going to collide with their T & C:

License Restrictions. Except as expressly permitted under the Terms, or unless you have received prior written authorization from Google (or, as applicable, from the provider of particular Content), Google's licenses above are subject to your adherence to all of the restrictions below. Except as explicitly permitted in Section 7 or the Maps APIs Documentation, you must not (nor may you permit anyone else to):

(yada yada)

10.2 copy, translate, modify, create a derivative work of, or publicly display any Content or any part thereof (for example, the following are prohibited: (a) creating server-side modification of map tiles; and (b) stitching multiple static map images together to display a map that is larger than permitted in the Maps APIs Documentation);

10.8 use the Static Maps API other than in an implementation in a web browser;

这篇关于谷歌地图和pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆