Mathematics Asked on January 3, 2022
So I have these three inputs –
Now I’m looking for the Terminal latitude and longitude to plot in my map application. I was able to get the earting and northing in decimal format but I will have issues converting those to lat/long in my application.
Is there any formula to find the terminal lat/long given the initial reference point, distance and bearing.
Spherical Trigonomentry is the natural tool for this computation. In fact, spherical trigonometry was invented for answering questions like this. One book on the subject is Spherical Trigonometry: for the use of colleges and schools by I. Todhunter (1886). The book is available in pdf form, for free, from Project Gutenberg.
The convention in spherical trigonometry is that the coordinates of a point are its longitude $theta$ and co-latitude $phi$. The co-latitude is zero at the north pole and $90^{circ}$ at the equator, unlike geographical latitude, which is $90^{circ}$ at the north pole and zero at the equator; so co-latitude = $90^{circ}$ - latitude.
An arc of a great circle, such as $a$ in the figure, is measured by the angle subtended by the arc at the center of the sphere. Angles between arcs of great circles, such as $A$ in the figure, are measured by the angles between the planes of the two great circles involved.
Let's suppose that $A$ is the north pole and our current location is $B$. Our destination is $C$, but we don't know its coordinates. We know (or can easily compute) our co-latitude, $c$. We also know $B$, our initial bearing. If we move a distance $d$ along the great circle from $B$ to $C$, then we know $a = d/R$ (radians), where $R$ is the radius of the earth. We also know the longitude of $B$, $theta_B$. We want to compute $b$, which is the co-latitude of $C$, and its longitude, $theta_C$.
Depending on how you compute trigonometric functions, you may need to convert angles from degrees to radians and vise versa. I'm omitting that step in this discussion since it may or may not be needed.
The spherical law of cosines states that $$cos b = cos a cos c + sin a sin c cos B$$ We know all the quantities on the right hand side of this equation, so we can compute $cos b$, and then we can compute $b=cos^{-1}(cos b)$.
The next step is to compute $A$. For this purpose we once again use the spherical law of cosines, but applied at a different vertex: $$cos a = cos b cos c + sin b sin c cos A$$ Solving for $cos A$, we have $$cos A = frac{cos a - cos b cos c}{sin b sin c}$$ Since we computed $b$ on the previous step, we know all the quantities on the right hand side of this equation, so we can compute $cos A$, and then of course $A = cos^{-1}(cos A)$.
Now that we know $A$, we can compute the longitude of point $C$ from $$theta_C = theta_B + A$$
We're done!
EDIT
The reader who is serious about these computations is encouraged to complete the following exercise. Suppose an airplane starts at latitude $40.71278$ degrees, longitude $-74.00611$ degrees and travels for $5833$ kilometers at an initial bearing of $53.58725$ degrees. Use the above formulas to compute the airplane's final location. Assume the radius of the earth is $6371$ kilometers.
You should find the final location is at latitude $48.9571$ degrees, longitude $2.3506$. (Don't forget to convert between co-latitude and latitude.) Find the initial and final locations on a globe or in an atlas. They are well-known locations.
Answered by awkward on January 3, 2022
3 Asked on February 10, 2021
1 Asked on February 10, 2021 by hanu-goyal
1 Asked on February 10, 2021 by hosein-javanmardi
1 Asked on February 10, 2021 by udalricus-s
algebraic topology covering spaces general topology group theory
0 Asked on February 10, 2021 by i-want-to-become-a-shepherd
2 Asked on February 10, 2021 by chase
2 Asked on February 9, 2021 by lupin
euclidean geometry geometric inequalities geometry projective geometry triangles
5 Asked on February 9, 2021 by shlok-jain
divisibility elementary number theory modular arithmetic number theory
13 Asked on February 9, 2021
3 Asked on February 9, 2021
1 Asked on February 9, 2021 by tymind
3 Asked on February 9, 2021 by doctork_
1 Asked on February 9, 2021
1 Asked on February 9, 2021 by tanay-mukherjee
1 Asked on February 9, 2021
combinatorial group theory finitely generated group presentation group theory infinite groups
1 Asked on February 9, 2021 by labbsserts
1 Asked on February 9, 2021 by devendra-singh-rana
1 Asked on February 9, 2021 by earth
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP