GPS Algorithm between two points

Discussion in 'General GPS Discussion' started by rifkgge55, Dec 28, 2024 at 2:54 PM.

  1. rifkgge55

    rifkgge55

    Joined:
    Saturday
    Messages:
    3
    Likes Received:
    0
    Hi,

    I am wondering whether anyone can help me with a GPS related algorithm. I would like to compute the angle between two points. Here is a breakdown of the steps as I have them in my notes:

    1. From Google Maps I paste the coordinates (conversion necessary??) of point A
    2. From Google Maps I paste the coordinates (conversion necessary??) of point B
    3. Assuming I am facing north at point A
      1. What is the line of sight distance between the two points
      2. What is the angle of point A relative to Point B
      3. (Besides 3.2) is there another way to compute the direction between these two points?
    With the output and a compass, one could fly from A to B.

    Thanks
     
    rifkgge55, Dec 28, 2024 at 2:54 PM
    #1
  2. rifkgge55

    Nuvi-Nebie Moderator

    Joined:
    Aug 16, 2015
    Messages:
    2,488
    Likes Received:
    212
    Location:
    UK
    I would have to start by saying that I don't have the mathematical knowledge to create a formula to do this, however a GPS unit can calculate this by creating points A and B as Waypoints and then plotting a route from A to B you will be given a distance and heading (angle from North), Also you can get Google Earth Pro to do this, if you create a Placemark at point 'A' and then use 'Show Ruler', click on 'A' and drag the yellow line to point B you will be given a distance (Map Length) and angle from north (Heading) in the Ruler info. box

    Baring.jpg
     
    Nuvi-Nebie, Dec 29, 2024 at 12:23 PM
    #2
    rifkgge55 likes this.
  3. rifkgge55

    rifkgge55

    Joined:
    Saturday
    Messages:
    3
    Likes Received:
    0
    Hi,

    What product are you using. If I can find something that does this I would avoid the hassle of developing something myself. I need to align the antenna of my rural house to the cell tower. The distance is considerable meaning that I have to zoom out so much that nothing remains visible.

    Furthermore in your example the product says 119.11 degrees but with reference to what? I need a tied down reference hence my selection of North.

    All help appreciated.
     
    rifkgge55, Dec 29, 2024 at 12:30 PM
    #3
  4. rifkgge55

    Nuvi-Nebie Moderator

    Joined:
    Aug 16, 2015
    Messages:
    2,488
    Likes Received:
    212
    Location:
    UK
    The product is Google Earth Pro (free to download), the 119.11 degrees is with respect to North at the top of the picture (0 degrees), 90 degrees is due East (right side of picture) 180 degrees is due South (bottom of the picture) and 270 degrees is due West (left side of picture)
     
    Nuvi-Nebie, Dec 29, 2024 at 1:19 PM
    #4
  5. rifkgge55

    rifkgge55

    Joined:
    Saturday
    Messages:
    3
    Likes Received:
    0
    I'll give it a try
     
    rifkgge55, Dec 29, 2024 at 2:39 PM
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.