只能获取经纬度值,但是想获取所在位置的地址。市面上有一款叫“WhereAmI”的免费app,也是可以显示地址的,所以我觉得是可以的。我该怎么做您可以使用Google或YahooAPIhttp://maps.google.com/maps/geo?q=20.0,2.0&output=json&oe=utf8&sensor=true&key=YOURKEYhttp://where.yahooapis.com/geocode?q=20.0,2.0&flags=J&gflags=R&appid=YOURKEY以下是Google的json响应示例{"name":"20.00,2.00","Status":{"code":200,"request":"geocode"},"Placemark":[{"id":"p1","address":"AdrardesIf?ghas,Mali","AddressDetails":{"Accuracy":0,"AddressLine":["AdrardesIf?ghas"]},"ExtendedData":{"LatLonBox":{"north":22.6604651,"south":17.2938071,"east":6.0979005,"west":-2.0979005}},"Point":{"坐标":[2,20,0]}}]}编辑您可以使用WebClient获取结果WebClientw=newWebClient();字符串页面=w.DownloadString(url);下面是解析Json结果的例子GoogleMapsv3GeocodeServerSideFindwithJSONClientLibraryREST以上是C#学习教程:HowtouseGPSwithwp7togetallthecontentsofaddressnamesharing.如果对你有用,需要进一步了解C#学习教程,希望大家多多关注。本文来自网络收集,不代表立场,如有侵权请点击联系右侧管理员删除。如需转载请注明出处:
