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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:29:54+00:00 2026-05-13T11:29:54+00:00

i want to use the best Coordinate. but one thing is confusing me here

  • 0

i want to use the best Coordinate. but one thing is confusing me

here i want to check that if new location accuracy is better then use new location otherwise use old location

if (newLocation.horizontalAccuracy>oldLocation.horizontalAccuracy)
{
    self.bestEffortAtLocation=newLocation; // this mean new location is better accurate
}
else
{
    self.bestEffortAtLocation=oldLocation; // this mean old location is better accurate
}

i want to know that above check is correct or not?

i know this is a stupid question. but now at this time i am at surface level.

Please suggest

  • 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-13T11:29:54+00:00Added an answer on May 13, 2026 at 11:29 am

    That’s not really a good idea. To see why, let’s say we call the accuracy at time t A(t), and it will be given in units of meters. We’ll imagine the following situation:

    • A(0) = m meters
    • A(t) = n > m meters
    • v(0) = k meters/sec, where k/t > m
    • zero acceleration on the interval [0, t]

    That is:

    • At time zero, your accuracy is some value m meters.
    • At some later time t, your accuracy is a worse value n meters.
    • Your speed at time zero will carry you outside the boundaries of the radius of m after time t.
    • You have constant acceleration, so your velocity doesn’t change.

    Using your algorithm, you would decline to use the new GPS location when you’re at time t because n is worse than m, even though the user couldn’t possibly anywhere near the old location. Their speed has carried them past the radius of m. That’s clearly not right.

    Instead, here’s a rudimentary algorithm to decide whether the new location is better or worse than the old one:

    • At periodic intervals of t seconds each, store a 3-tuple (L, v, A) containing the location L, velocity v, and accuracy A of the user.

    • At some time u you would like to know what the best guess for the user’s location is.

    • Examine the location at time u - t. If Aold > Anew (remember, higher values of accuracy are worse if they’re measured in meters), then use the new location since it’s more accurate.

    • If Aold < Anew, things are a little different. If A/t exceeds 2v, the user is probably still inside the accuracy circle, so use the old L. But if not, then the user has traveled outside the bounds of the accuracy circle, so use the new L.

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

Sidebar

Related Questions

I'm starting a new Titanium app and want to use best practices and avoid
I want to use Pie, Bar, Line charts in java. What is the best
Which version of Linux would be my best choice if I want to use
i want to know which parsing method is best to use among Simple XML
I want to know what framework/Interface/API's Set is best to use to create multi-process
I want use BYTE_ORDER macro in my Xcode project but i can't because i
I have a screen filled with buttons, but want the onTouch-method to use the
I want use this 1 for using Bar code or QR code scanner. I
I want use javascript setInterval function to achieve a box rotate animate effect, I
I want use a single php file to handle all of my voting requests.

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.