Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3360288
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:58:29+00:00 2026-05-18T02:58:29+00:00

I am developing an app which uses gps. i need a high accuracy so

  • 0

I am developing an app which uses gps. i need a high accuracy so i used kCLLocationAccuracyBestForNavigation for the desiredAccuracy.
when i am running the app, the follwing method gets called as expected.

(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{

within this method i am checking if the accuracy is good enough with the follwing code segment:

if (newLocation.horizontalAccuracy <= locationManager.desiredAccuracy) {
...
}

but this if-block never gets active, as the newLocation.horizontalAccuracy is not going below 17.00 meters. When i was running this code on iPhone 3GS OS 3.1.2 everything was running fine. but since i upgraded to 4.0.1 it seems that there is a problem with the accuracy. It even doesn’t work with kCLLocationAccuracyNearestTenMeters which was also running smooth and stable on iOs 3.1.2.

do you have any hints for me whats going on and how i can solve my problem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:58:29+00:00Added an answer on May 18, 2026 at 2:58 am

    The problem with your if block is that you are comparing horizontalAccuracy, which is reported in meters, against desiredAccuracy, which is set as the constant value kCLLocationAccuracyBestForNavigation. These constants aren’t defined in the documentation, but other constants are just enumerated. So kCLLocationAccuracyBestForNavigation may just be literally equal to 0. Your horizontalAccuracy would never be less than or equal to zero.

    You need to test your horizontal accuracy against a an actual number. The best horizontal Accuracy I’ve gotten is 5.0. So, you may want to change your if statement to !(newLocation.horizontalAccuracy > 5.0).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing an app which uses tabs and google map. What I want
I'm developing an app which uses Spring quite heavily. Spring and the Tomcat Security
I am developing an iPhone app which uses a server somewhere to fetch its
TickZoom is a very high performance app which uses it's own parallelization library and
I'm developing an application for Google App Engine which uses BigTable for its datastore.
I am developing an app which uses the phone's default camera application to capture
I'm developing a J2ME app which securely connects to a server to login. I'm
I am developing an iPhone app which is a location aware app . Currentlly
Suppose I'm developing a web app that is heavily dependent on JavaScript and which
I'm kinda noob to android so please bear with me. I'm currently developing app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.