Google maps 如何在谷歌地图图像中获取流量

Google maps 如何在谷歌地图图像中获取流量,google-maps,google-maps-api-3,Google Maps,Google Maps Api 3,通过以下代码可以获得没有流量的Google Map图像: from io import BytesIO from PIL import Image import urllib.request url = "http://maps.googleapis.com/maps/api/staticmap?center=-30.027489,-51.229248&size=800x800&zoom=22&sensor=true" buffer = BytesIO(urllib.

通过以下代码可以获得没有流量的Google Map图像:

from io import BytesIO
from PIL import Image
import urllib.request

url = "http://maps.googleapis.com/maps/api/staticmap?center=-30.027489,-51.229248&size=800x800&zoom=22&sensor=true"

buffer = BytesIO(urllib.request.urlopen(url).read())
image = Image.open(buffer)
image.save("Map.png")
此代码不提供任何有关流量的信息。我是否可以更改上面的
url
以获取流量数据?我知道交通数据可以通过以下方式获得:

但是有没有办法更改
url
,以便获得交通线路

不支持流量。如果您有交通数据源(以及道路的适当数据),您可以在静态地图上覆盖彩色多段线;但Google不支持(目前)