Accuracy of Core Location

后端 未结 4 893
南笙
南笙 2020-12-23 15:16

I\'m currently working on a location tracking app and I have difficulties with inaccurate location updates from my CLLocationManager. This causes my app to track di

4条回答
  •  孤城傲影
    2020-12-23 15:58

    This is always a problem with satellite locations. It is an estimate and estimates can vary. Each new report is a new estimate. What you need is a position clamp that ignores values when there is no movement.

    You might try to use sensors to know if the device is actually moving. Look at accelerometer data, if it isn't changing then the device isn't moving even though GPS says it is. Of course, there is noise on the accelerometer data so you have to filter that out also.

    This is a tricky problem to solve.

提交回复
热议问题