(6)静态地图
import requests
key = 'xxx' #高德地图API
#静态地图
def map(location:str,zoom:str):
parameters = {
'key':key,
'location':location, #经纬度
'zoom':zoom #缩放级别[1,17]
}
r = requests.get('https://restapi.amap.com/v3/staticmap?parameters',params=parameters)
data = r.url
return data