Any maths guru can help me with this? Assumig the distance is less than 10 km so the sperical issue should not be a big problem in the calculation.
Tks.
How to calculate distance between 2 GPS coordinate
Moderators: Moderators, Regional Mappers
Forum rules
1. Be nice to each other and respect the moderators. Post in normal font size, color and weight. Follow Nettiquette
2. NO out of topic. Discuss matters pertaining MFM community and forum only.
3. NO abuse, profanity and insults
4. NO spamming, cross posting and opening of duplicate topics
5. NO advertisement post or link
6. NO post/link to warez, cracks, serials or illegally obtained copyrighted content
7. Each message posted is owned by and is the opinion of the original poster. Neither mfm nor its owner or moderators are legally responsible for anything posted on the forum
1. Be nice to each other and respect the moderators. Post in normal font size, color and weight. Follow Nettiquette
2. NO out of topic. Discuss matters pertaining MFM community and forum only.
3. NO abuse, profanity and insults
4. NO spamming, cross posting and opening of duplicate topics
5. NO advertisement post or link
6. NO post/link to warez, cracks, serials or illegally obtained copyrighted content
7. Each message posted is owned by and is the opinion of the original poster. Neither mfm nor its owner or moderators are legally responsible for anything posted on the forum
 moeyhc
 Valued Contributor
 Posts: 2230
 Joined: Wed Sep 17, 2008 10:53 am
 Location: Penang  Nuvi 300, 205W, 2575RLM, M1200, M1000B/C, Papago N1
Re: DISTANCE BETWEEN 2 GPS COORDINATES
The easiest way to know the distance between two coordinates is to create the two way points in Mapsource and than check the route distance. Ensure you select Use Direct Route in preference.... Let technology work for you...
To use Maths you have to know the Latitude and find the circumference there.... than the rest is knowing the circumference of Earth (assuming the Earth is a perfectly round ball) for the Longitude and using Pythagoras to calculate the Hypotenuse of the Triangle... let me check my books to confirm...
To use Maths you have to know the Latitude and find the circumference there.... than the rest is knowing the circumference of Earth (assuming the Earth is a perfectly round ball) for the Longitude and using Pythagoras to calculate the Hypotenuse of the Triangle... let me check my books to confirm...
Common Sense Is Not Common.
Re: DISTANCE BETWEEN 2 GPS COORDINATES
Hi,
Not sure if you want to know to derive the formula or you just want the distance.
http://www.movabletype.co.uk/scripts/latlong.html
http://www.fcc.gov/mb/audio/bickel/distance.html
Not sure if you want to know to derive the formula or you just want the distance.
http://www.movabletype.co.uk/scripts/latlong.html
http://www.fcc.gov/mb/audio/bickel/distance.html
Re: DISTANCE BETWEEN 2 GPS COORDINATES
Tks for the link. I'm trying to get a simplified version for the calculations. Not that I need it to be super accurate (to keep track of SWMBO positon) . The distance of my transponder I intend to rig would be <10 km most of the time in a straight line. Anyting further and BIG BROTHER will be after my skin, I do know some that can go 40 miles running on 900Mhz but that is strictly clear line of sight. The memory available for programming is small and I have to keep its calculations as simple as possible.
Looks like I'll have to digest the data and hopefully come up with some resonable workaround.
Unfortunately, mapsource option is not in the equation otherwise.
Tks. Pls keep me updated if you come across a more simple calculation.
Looks like I'll have to digest the data and hopefully come up with some resonable workaround.
Unfortunately, mapsource option is not in the equation otherwise.
Tks. Pls keep me updated if you come across a more simple calculation.

 Valued Contributor
 Posts: 66
 Joined: Tue Sep 16, 2008 11:15 pm
Re: DISTANCE BETWEEN 2 GPS COORDINATES
I am no soldier. But during my scouting days in secondary school, I remember a simple way to calculate distance with a given set of coordinates. It uses Pythagorean theorem to calculate the distance(the a equals to the squareroot of b square plus c square thing).
I found this at one of the websites, http://www.movabletype.co.uk/scripts/latlong.html:
1° ≈ 111 km (110.57 eq’l — 111.70 polar)
1′ ≈ 1.85 km (= 1 nm) 0.001° ≈ 111 m
1″ ≈ 30.9 m 0.00001° ≈ 1 m
I think this is the one you are looking for.
Hope it helps.
I found this at one of the websites, http://www.movabletype.co.uk/scripts/latlong.html:
1° ≈ 111 km (110.57 eq’l — 111.70 polar)
1′ ≈ 1.85 km (= 1 nm) 0.001° ≈ 111 m
1″ ≈ 30.9 m 0.00001° ≈ 1 m
I think this is the one you are looking for.
Hope it helps.
 moeyhc
 Valued Contributor
 Posts: 2230
 Joined: Wed Sep 17, 2008 10:53 am
 Location: Penang  Nuvi 300, 205W, 2575RLM, M1200, M1000B/C, Papago N1
Re: DISTANCE BETWEEN 2 GPS COORDINATES
Bro TurboS,
The Lontitude distance at the Equator is definitely longer than near the Poles. So having a fix distance to calculate between two points is not practical...isn't it?... cheers....
Happy Depavali !!!...
The Lontitude distance at the Equator is definitely longer than near the Poles. So having a fix distance to calculate between two points is not practical...isn't it?... cheers....
Happy Depavali !!!...
Common Sense Is Not Common.
Re: DISTANCE BETWEEN 2 GPS COORDINATES
Tks. Pythagorean theorem was one method I was looking at. It's calculation may be compounded by elevation, like the rest of the formulas. Anyway it is lot lot easier as I do not need to deal with trig calculations and that can zap quite a bit of memory. I know I should be able to get the uBlox receiver module to broadcast altitude too. Its quite a chip considering 160dBm 50 channel ability. Hopefully will work as good indoor too. I should be receiving it mid next week .. hopefully . I guess, will have to test out the options given by everyone and see what is the best compromise.
Considering the very close, straight line 10 km distance, plus GPS positioning offset, I may be prepared for a big compromise.
Considering the very close, straight line 10 km distance, plus GPS positioning offset, I may be prepared for a big compromise.

 Polygon Mapper
 Posts: 207
 Joined: Tue Sep 16, 2008 10:15 pm
 Location: Puchong, SEL (Symbian MXT)
Re: DISTANCE BETWEEN 2 GPS COORDINATES
If your activity coverage area is small (let say 50km x 50km) and you can compromise with the distance accuracy, then the above equation can be further simplified by using fixed average latitude of the activity coverage area instead of local latitude, i.e.
D = [a – (a  c) K1] x SQRT[K2 x LongD2 + LatD2]
where
K1 = sin2(LatF)
K2 = cos2(LatF)
LatF = fixed average latitude of coverage area
Example :
Coverage area = 50km radius from Hamilton of New Zealand
LatF = latitude at Hamilton
Distance ~= 10km
Error = +70m
You do not have the required permissions to view the files attached to this post.
Last edited by 76gpsguy on Sat Oct 17, 2009 3:14 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 2 guests