gpt4 book ai didi

c# - GeoCoordinateWatcher 没有在模拟器中获取 GeoCoordinate Speed?

转载 作者:太空宇宙 更新时间:2023-11-03 16:35:28 25 4
gpt4 key购买 nike

我正在尝试跟踪设备的 Windows Phone 7 map 应用程序。我正在显示一个文本 block ,它使用传递给“GeoCoordinateWatcher”对象的 PositionChanged 事件处理程序的“GeoPositionChangedEventArgs e”参数中的“e.Position.Location.Speed.ToString("0.00")”更新当前速度。

在模拟器中调试应用程序时,我使用了一组之前记录的图钉并播放了模拟器。经度/纬度位置正确变化,但速度反射(reflect)为 NAN。

为什么会这样?速度属性是如何计算的?

最佳答案

将调用转移到单独的线程将解决问题...

GeoCoordinateWatcher location not returning speed. NaN instead

关于c# - GeoCoordinateWatcher 没有在模拟器中获取 GeoCoordinate Speed?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9258193/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com