Android Question Geodesic - Erroneos Distance Calculation

Phil Thompson

Member
Licensed User
Longtime User
OOPs.... This is really an OSMDroid 3_0_8 Issue

Drill
Geopoint1.latitude=43.123
Geopoint1.longitude=-79.123
Geopoint1.altitude=200M ASL

Target
Geopoint2.latitude=43.124
Geopoint2.longitude=-79.124
Geopoint2.altitude=100M ASL

Dist1 = Geopoint1.GetDistanceTo(Geopoint2)
Geodesic Calculated Distance Dist1=137M (No Altitude Compensation)
Actual Distance = 169M (With Altitude Compensation)

I am no programmer, just user of canned routines
I sure would appreciate a revision OSMDroid Library that has the altitude compensation.

I am working on a mineral drilling application that requires the altitude compensation. I have a work around to come up with the answer I need.

WorkAround:
Get Bearing from GP2 to GP1
Create new geopoint GP3 at Mineral Alt-Drill Alt, at 90 Degrees
Get Distance from GP1 to GP3
 
Last edited:
Top