大佬教程收集整理的这篇文章主要介绍了windows-phone-8 – windows phone 8 Map API GeocodeQuery.SearchTerm不是英语什么都没有,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
// Get your current position var myPosition = await new Geolocator().GetGeopositionAsync(TimeSpan.Fromminutes(1),TimeSpan.FromSeconds(10)); // Define search var geoQuery = new GeocodeQuery(); geoQuery.SearchTerm = "Taipei"; geoQuery.GeoCoordinate = new GeoCoordinate(myPosition.Coordinate.Latitude,myPosition.Coordinate.LongitudE); geoQuery.QueryCompleted += (s,E) => { if (e.Error == null && e.Result.Count > 0) { // e.Result will contain a list of coordinates of matched places. // You can show them on a map control,e.g. mymap.Center = e.result[0].GeoCoordinate; mymap.ZoomLevel = 2; } } geoQuery.QueryAsync();
它运作良好!我成功地获得了一些关于“台北”的位置,
我在回调函数geoQuery.QueryCompleted中没有得到任何东西,
e.Result.Count = 0
以上是大佬教程为你收集整理的windows-phone-8 – windows phone 8 Map API GeocodeQuery.SearchTerm不是英语什么都没有全部内容,希望文章能够帮你解决windows-phone-8 – windows phone 8 Map API GeocodeQuery.SearchTerm不是英语什么都没有所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。