C#百度地图根据地址批量获取经纬度方法以及根据经纬度批量获取地址方法如下:
![41d23b273e36dfad85061f1580b0a579.png](https://i-blog.csdnimg.cn/blog_migrate/3235133039199b8d8461c23333e48a61.jpeg)
一、在开发百度地图相关功能时,批量上传企业信息时,需要将地址批量转换为百度地图的经纬度
具体方法如下:
///
/// 根据地址获取经纬度 可用
///
///
///
public static string Get_lng_lat_new(string address)
{
string ak = "你申请百度地图开放平台的AK值";
string Url = @"http://api.map.baidu.com/geocoding/v3/?address=" + address + "&output=json&ak="+ak+"&callback = showLocation";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
request.KeepAlive = false;
request.Method = "GET";
request.ContentType = "application/json&#