CLLocation returning negative speed

后端 未结 1 1754
长情又很酷
长情又很酷 2020-12-19 01:07

I\'m starting a new app which uses the coreLocation and the mapkit frameworks.

My problem is trying to get the current speed always returns me a negative value, i ha

相关标签:
1条回答
  • 2020-12-19 01:30

    Usually, you get negative altitude and speed if the used location detection mechanism doesn't support it. For instance, when Wi-Fi or cell triangulation is used. Are you sure, you're getting GPS updates, so are you testing under the free sky? Even then, you'll still receive WiFi and cell tower location updates so you've to filter them out.

    65 m horizontal accuracy is typical for Wi-Fi location updates.

    0 讨论(0)
提交回复
热议问题