Go Back  PPRuNe Forums > Flight Deck Forums > Tech Log
Reload this Page >

Distance calculation (lats and longs)

Wikiposts
Search
Tech Log The very best in practical technical discussion on the web

Distance calculation (lats and longs)

Thread Tools
 
Search this Thread
 
Old 16th Oct 2001, 20:18
  #1 (permalink)  
Thread Starter
 
Join Date: Nov 2000
Location: St Albans (Herts UK)
Posts: 74
Likes: 0
Received 0 Likes on 0 Posts
Question Distance calculation (lats and longs)

Does anybody out there know of a quick and reasonably accurate formula for measuring the distance between two points specified in Lat/Long format??

I have come across scores of over-complex examples, mainly from astronomical sites, which I am sure are fine, but they are far too complex for what I am looking for.

I know that in the "real world" your computers work these figures out for you, but I would be grateful if anybody can provide me with an example.

Regards,
???pax
???pax is offline  
Old 16th Oct 2001, 22:56
  #2 (permalink)  
 
Join Date: Jun 2001
Location: Australia
Posts: 889
Likes: 0
Received 0 Likes on 0 Posts
Post

As far as quick & easy formulae go, the only two examples I know of relate to two points either on the same parallel or the same meridian.

Same parallel: "Departure":
dist = (change in longitude in degrees) x cosine (average latitude) x 60

Same longitude:
dist = change in latitude in degrees x 60.

A formula that works for E/W and N/S will use spherical trigonometry, and will appear to be immensely complex!

It has been covered a few times before on these forums. Try the search feature, going back two years.

cheers,
O8
Oktas8 is offline  
Old 17th Oct 2001, 06:50
  #3 (permalink)  
 
Join Date: Aug 1998
Location: Ex-pat Aussie in the UK
Posts: 5,801
Received 122 Likes on 59 Posts
Post

.. or grit your teeth, and have a look at Ed Williams's Aviation Formulary V1.31
Some great circle formulae:

Distance between points

The great circle distance d between two points with coordinates {lat1,lon1} and {lat2,lon2} is given by:

d=acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon1-lon2))

A mathematically equivalent formula, which is less subject to rounding error for short distances is:

d=2*asin(sqrt((sin((lat1-lat2)/2))^2 + cos(lat1)*cos(lat2)*(sin((lon1-lon2)/2))^2))
[ 17 October 2001: Message edited by: Checkboard ]
Checkboard is offline  
Old 18th Oct 2001, 13:28
  #4 (permalink)  
Thread Starter
 
Join Date: Nov 2000
Location: St Albans (Herts UK)
Posts: 74
Likes: 0
Received 0 Likes on 0 Posts
Post

Cheers people. It looks like I am going to have to wipe that dust off my scientific calculator.
???pax is offline  
Old 18th Oct 2001, 17:19
  #5 (permalink)  

Primitive Aviator
 
Join Date: Sep 1998
Location: australia
Posts: 79
Likes: 0
Received 0 Likes on 0 Posts
Post

Depends on what degree of accuracy you require and over what distance. The only precise method is by Spherical Trig calculation as per Ed Williams Formulas which are really a modern illustration of the old haversine method.

For distances less than 600 miles the Plane Sailing method using the theory of the superceeded Mercator projection gives a usable Rhumb line Track and Distance. Although the formulae appear simpler the method can still provide a headache mainly because Nautical tables of Meridional Parts(MPs) is needed and I doubt that they are readily available any more. I still have my trusty/dusty copy of Norie's Nautical Tables using a compression ratio of 1/293.465 for the Terrestrial Spheroid.

Briefly the MPs for each Latitude is obtained from the Table and the Difference(DMPs) is determined. Simply the DMPs are subtracted if the Latitudes are both of the same Equatorial orientation and added if on different sides of the Equator.

Next just find the difference in longitude(D Long)

Then you have two sides of a right angled triangle.

So:

Tan Track Angle = DLong / DMPs

and:

Distance = Change Latitude(In Minutes) * Secant Track Angle


Taking the Approximate Lat/Longs for Sydney and Melbourne as 3352S 15112E and 3750S 14459E Track and Distances work out at:

From Tables SY 3352S = 2148.8 and ML 3750S = 2441.23 DMPs = 292.43
Tan Track Angle DLong 373/DMPs 292.43
Track Angle is 51.9 Degrees South West from SY ie 180 + 51.9 = 231.9 True.

Now the easy? bit.
Lat SY - Lat ML 33.52 - 37.50 = 3.58 = 238'

Distance = Change Lat * Sec Track Angle
= 238 * Secant 51.9 Degrees
= 385.7nm
Haven't got a chart handy but that's not far out from memory.

And you think your head hurts

Just did a quick calc using spherical Trig...Distance comes out at close to 399nm so there is a distance error of 14nm in 400 =
3.5% Track is not far off but would differ more at higher Lats.

[ 18 October 2001: Message edited by: pterodactyl ]
pterodactyl is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.