Monday 15 February 2010

ios - Improve accuracy of measured distance with GPS -


I am currently measuring the distance how far the user went / ran / etc. When I am comparing my results with results from other results, my result is not correct as other people (i.e. 100 meters which is correct and my result is approximately 50 meters). How can I improve my accuracy to get more accurate results?

What I'm still doing:

Initiate CLLocationManager:

  LocationManager = [[CLLocationManager alloc] init]; LocationManager.desiredAccuracy = kCLLocationAccuracyBest; LocationManager.delegate = self; LocationManager.distanceFilter = 10; Place Manager: (CLLocationManager *) Manager updated location: (NSArray *) Location {CLLocation * last Location =   

[LocationsObject]; NSTime Interval Age = - [Last location. Timestamp TimeInternationalScience]; If (age> 30.0) return; If (fake location of last place & lt; 0) return; // Ignore invalid updates (previous locations == zero) return; } CLLocationDistance distance = [last location distance: location from location: previous location]; If (Representative representative replies: Selector (Current Destance :)) {[Current Representative: Distance]; } Previous Location = Last Location;

}

Cheers!

Generally, geolocation is done in 3 ways depending on the settings and hardware of the device:

  • Cellular radio
  • Wifi mapping
  • GPS

    sets the property - specified accuracy Which of the three ways should it be? On the other hand, the most accurate you need the latest response before you will get the radio (only for cell device), if WiFi is on and the cell data is on you then you will get WiFi geolocation, usually + - 100 meters and lots of GPS Some (if available). The delay on GPS is the two discovery of Satellite and Battery Optimization to run, I suggest you use it as the desired accuracy kCLLocationAccuracyBestForNavigation As you get into the GPS play, Should get 10 million pricing.
    One more thing is fixed from -distancefilter to 5 meters, if the Coralocace Manager receives a new measurement with the Delta; = 5 meters, then he calls the representative method.
    If you want to exclude space with larger horizontal accuracy than one price then just add another logical position - I also recommend you to read these answers. < / Html>

No comments:

Post a Comment