(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