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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:21:32+00:00 2026-05-20T13:21:32+00:00

I am developing an application where I want to know whether I am moving

  • 0

I am developing an application where I want to know whether I am moving towards a particular location or away from it. I know the latitude and longitude of that particular location. For eg, say I am at x location and moving towards y which is say 100 miles away. Now, if I calculate the distance between this two locations then its always positive so I do not know whether I am moving away or towards. The second option would be keep track of previous distance and compare the previous one and new one and see if its larger then I am moving away may be.

In Android we do get the heading from GPS. Then is there some way that I can use that information to track whether I am moving towards y or away from it.

  • 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-20T13:21:33+00:00Added an answer on May 20, 2026 at 1:21 pm

    You should be able to get a general idea by calculating a bearing between your current location and the destination, and then comparing that to your current heading. See calculating distance and bearing for the math.

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

Sidebar

Related Questions

I am developing smart device application. I want to know whether we need to
Im creating an application and i want to know whether or not the browser
I'm developing an iPhone application and I want to know when it is the
I'm developing one application in IPad.In that application i want to add 2 buttons
I am developing console application in .Net and I want to change a behavior
I am developing an application for video recording and I want to overlay the
Hey, I've been developing an application in the windows console with Java, and want
When you are developing a web-based application and you want to allow richly formatted
I am developing an ASP.NET MVC application and I want to use OpenId. What
I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be

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.