地图坐标服务

想要了解地图坐标服务接口吗?进入网站(www.haoservice.com/docs/9)填写必要信息即可

using System;
using System.Text;
using System.Net;
namespace IP
{
class Program
{
static void Main(string[] args)
{
string key = "****************";
string lnglatInfor = "*****************";
int type=1;
string url = "http://api.haoservice.com/geoconv/v1?lnglatInfor="+lnglatInfor+"&type="+type+"&key="+key;
WebClient wc = new WebClient();
wc.Encoding = Encoding.UTF8;
string str = wc.DownloadString(url);
Console.WriteLine(str);
Console.ReadKey();

}
}
}

posted @ 2014-09-12 10:28  qwji  阅读(125)  评论(0编辑  收藏  举报