谷歌地图查找地址
问题描述:
我的情景:谷歌地图查找地址
我使用Artem.GoogleMap.dll
GoogleMarker oMarker = new GoogleMarker(42.1229, 24.7879);
GoogleMap1.Markers.Add(oMarker);
我需要找到位置[地址]为特定的纬度和经度我怎么可以这样使用GoogleMap的?不要想在那GMAP insteed显示获得locaiton的
遗憾的名字我的英语太差
答
看一看的文件,它看起来很容易:
http://googlemap.codeplex.com/wikipage?title=Google%20Geocoder&referringTitle=Documentation
您需要创建一个GeoRequest对象并在构造函数中传入lat/lng,以下是文档中的示例代码:
GeoRequest request = new GeoRequest(42.1438409, 24.7495615);
GeoResponse response = request.GetResponse();
string address = response.Results[0].FormattedAddress;
// TODO use address values
我得到了错误 文化'en'是一种中立的文化。它不能用于格式和解析,因此不能被设置为线程的当前文化。 – anbuselvan 2010-12-17 11:30:46
您是否可以更新您的问题,并提供更多关于您已更改内容的详细信息,您在哪里得到错误?你没有提供足够的信息。 – kzhen 2010-12-17 14:41:47
我在执行此行时遇到以下异常:GeoResponse response = request.GetResponse(); “Culture'en'是一种中性文化,它不能用于格式化和解析,因此不能被设置为线程当前的文化” – anbuselvan 2010-12-29 08:57:00