1

The positions from Wi-Fi or Cellular Tower by iPhone CLLocationManager are not accurate enough for tracking routes. I want only the positions from GPS.

For the moment I use newLocation.horizontalAccuracy in didUpdateToLocation to filter:

if (newLocation.horizontalAccuracy < 0 || newLocation.horizontalAccuracy > 100) return;

because I find that when the location "jump" to an inaccurate position (possibly Cell Tower position), the horizontalAccuracy is 100, so I use 100 to filter it out.

What is the best way of getting GPS-ONLY positions, despite of accuracy?

4

1 回答 1

0

You can't get GPS-only data. It's my understanding that the CLLocation is calculated based on GPS, cell towers as well as any available wireless networks within range.

于 2010-11-03T10:46:59.470 回答