Jump to content

Calculating Bearing


AJF

Recommended Posts

I need helps here, :P

 

If I am at Lat1, Lon1 and whant to go to Lat2,Lon2 how do I calculate the bearing.

I know that I can use Trigonometry and that is fine but I don't remember how to.

 

the format is dd.mmmmmm

 

If anybody can help I would really appreciate it.

 

Thanks,

 

AJF

Link to comment

Enter each of the coords and save as waypoints in your GPSr. Go to your route function, and start a new route. Enter the 2 waypoints and save the route. When you highlight the first waypoint, it gives the bearing and distance to the second. Make sure you set up your North Reference to either True or Magnetic, depending on what you want.

Link to comment

This is for great circle distance and bearing.

 

1. cos(D) = (sin(A) * sin(B)) + (cos(A) * cos(B) * cos(L))

 

2. cos© = (sin(B) - (sin(A) * cos(D))) / (cos(A) * sin(D))

 

WHERE:

 

A = YOUR latitude in degrees.

B = latitude of the other location in degrees.

L = YOUR longitude minus that of the other location. (Algebraic difference.)

D = Distance along path in degrees of arc.

C = True bearing from north if the value for sin(L) is positive. If

sin(L) is negative, true bearing is 360 - C.

 

To convert degrees of arc to statute miles, multiply by 69.041.

To convert degrees of arc to kilometers, multiply by 111.111.

Edited by papatom2
Link to comment
A = YOUR latitude in degrees.

B = latitude of the other location in degrees.

L = YOUR longitude minus that of the other location.

Ummm, I think these are supposed to be in radians.

At least that's what I have in the source code for GPX Spinner. I'm too lazy to research the formulas again, though. All I know is my code works :P

Link to comment

You don't want to use the spherical earth model if you can help it, though the calculations are easy. I did it for hand held calculators 25 years ago.

 

An elliptical model, specifically GRS80/NAD83/WGS84 is what is needed. The Ed Williams web site linked above used to have some good reference links but many of them are defunct. I wish I still had the reference from which he wrote his Great Circle Calculator. Hmmm, maybe this is the venerable old document you want. I can almost smell the mildew :P . You could also reverse engineer the javascript, or at least mine it for a good set of ellipsoid parameters.

 

Another bit of software you might be interested in is compsys21. It has a clunky user interface, but does all types of geodetic intersections. I still haven't found a source for those formulas either. The FAA web site is huge and hard to search.

 

edit: The site JDMC linked for the spherical solution also has the Vicenty formulae for the ellipsoidal solution.

Edited by blindleader
Link to comment
A = YOUR latitude in degrees.

B = latitude of the other location in degrees.

L = YOUR longitude minus that of the other location.

Ummm, I think these are supposed to be in radians.

At least that's what I have in the source code for GPX Spinner. I'm too lazy to research the formulas again, though. All I know is my code works :lol:

Your rigth Lil Devil it's Radians.

 

Thanks

Link to comment
QUOTE (Lil Devil @ Jun 8 2005, 02:47 PM)

QUOTE (papatom2 @ Jun 8 2005, 03:20 PM)

A = YOUR latitude in degrees.

B = latitude of the other location in degrees.

L = YOUR longitude minus that of the other location.

 

Ummm, I think these are supposed to be in radians.

At least that's what I have in the source code for GPX Spinner. I'm too lazy to research the formulas again, though. All I know is my code works biggrin.gif

 

Your rigth Lil Devil it's Radians.

 

Thanks

 

Radians and degrees are directly proportional so there is no difference in the calculations. Use either one.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...