Google地图会阻止我吗?

Mar*_*hal 4 google-maps blocking google-maps-static-api

我正在编写适用于Google Maps的Web应用程序,我需要生成PDF输出,所以我决定使用静态API.我的应用程序将使用1500个小地图图像(100*100px).我不想每天向Google索取每一千张图片,所以我写了一个脚本来下载所有图像并将其保存到我的服务器中,其中将使用图像.下载300张图片后,我的服务器收到此错误:

Warning: readfile(http://maps.googleapis.com/maps/api/staticmap?size=100x100&maptype=roadmap&markers=icon:http://mediup.martinstrouhal.cz/arrs/210.png%7Cshadow:false%7C50.078522,14.436551&sensor=false&zoom=16) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
Run Code Online (Sandbox Code Playgroud)

这是否意味着谷歌永久阻止我?

Jor*_*ick 6

您缺少API密钥.

不包含您的API密钥街景图像API受IP限制为每24小时1000张图像和每分钟5张图像,如果您不使用密钥,这两种图像都可能会被击中.使用键,您可以每天拉出25000张图像

格式应为:http: //maps.googleapis.com/maps/api/streetview?size = 400x400&location = 40.720032,-73.988354&senns = false&key = APPI_KEY

街景视图包括如何获取API密钥. https://developers.google.com/maps/documentation/streetview/?csw=1