2

I'm trying out a Windows Phone 7 Maps application which tracks the device. I'm displaying a textblock which updates the current speed using "e.Position.Location.Speed.ToString("0.00")" from the "GeoPositionChangedEventArgs e" argument passed to the PositionChanged event handler of "GeoCoordinateWatcher" object.

While debugging the application in emulator, I used a set of previously recorded push pins and played the emulation. The longitude/lattitude positions change properly but the speed is reflected as NAN.

Why is this happening? How is the speed property calculated?

kitwalker
  • 862
  • 1
  • 10
  • 29

1 Answers1

0

Moving you call to separate thread will fixed the problem...

GeoCoordinateWatcher location not returning speed. NaN instead

Community
  • 1
  • 1
Saboor Awan
  • 1,567
  • 4
  • 24
  • 37