借助百度地图API
import requestsimport pandas as pdimport numpy as np#构造百度API获取经纬度函数def geocodeB(address):base = url = "http://api./geocoder?address=" + address + "&output=json&key=f247cdb592eb43ebac6ccd27f796e2d2"response = requests.get(base)answer = response.json()return answer[
esult][location][lng],answer[
esult][location][lat