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 9294237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:19:30+00:00 2026-06-18T21:19:30+00:00

I am calculating the distance between two lat long coordinates using -(CLLocation)distanceFomLocation:(CLLocation) and Haversine

  • 0

I am calculating the distance between two lat long coordinates using -(CLLocation)distanceFomLocation:(CLLocation) and Haversine formula. But its not giving the correct result.
I am using core location framework to find out the lat long of two posions which are 1 meter apart in actual but the above formula gives the distance some times 40m sometimes 30m and so on. I have set the desired accuracy is ten meters. I am using iPhone 4s device.

Just want to know that what is accuracy of method -(CLLocation)distanceFomLocation:(CLLocation) for calculating the distances? I have to calculate the distances whth in 10 m range.

  • 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-06-18T21:19:32+00:00Added an answer on June 18, 2026 at 9:19 pm

    The formula is correct, for 1m distance the acuarcy is under 1/1000 of milimeter. That what is wrong is your lat/lon position you got from the GPS device, which can deviate that 40m.

    For 10m distance the formula used in either haversine or distanceFromLocation are perfectly accurate. It starts to get interesting when distances are some kilometer apart.

    So don’t worry. But yor main problem is to get such acurate positions, and that depends what you need it for.

    Do you need distance meassure of the coordinates of ONE GPS device, (that works) or between differnet GPS devices (can be appart 30m for two device on same position, but usually 3-6m GPS accuracy when having good view to open sky.

    Further make sure that you use desiredAccuracy BestForNavigation or Best.

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

Sidebar

Related Questions

I need to calculate the distance between two points, but not in the regular
I'm calculating the Euclidean distance between n-dimensional points using OpenCL. I get two lists
In PHP, I have the following code for calculating the distance between two locations:
What is the formula for calculating the distance between 2 geocodes? I have seen
I have a problem calculating the distance between two geopoints. The geopoints are: position1
I'm calculating the distance between two GeoCoordinates. I'm testing my app against 3-4 other
I am currently calculating the driving distance between two points on one of my
I would like to calculate the distance between two x/y coordinates on the surface
Possible Duplicate: Calculating the Difference Between Two Java Date Instances How do I get
For my game, I need to find the distance between two objects at certain

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.