Trouble with CLLocation method distanceFromLocation: Inaccurate results

后端 未结 4 1226
天命终不由人
天命终不由人 2020-12-15 11:16

I am trying to use the distanceFromLocation: method to calculate the total distance that I am walking with my iPhone in my hand. So far, I have been searching all over to h

4条回答
  •  天命终不由人
    2020-12-15 11:40

    The first thing you should do is discharge the first update by checking the timestamp of the first update you receive from the location manager, it usually caches the last known position. Second remember the accuracy, the initial values that you'll get are always in a wide range.

提交回复
热议问题