I iCAB Well-Known Member Licensed User Longtime User Jun 8, 2018 #1 Hi All Does anyone know if this method takes Altitude into consideration as well? Thanks iCAB
R Roycefer Well-Known Member Licensed User Longtime User Jun 8, 2018 #2 B4X: Sub DistanceTest Dim l1 As Location l1.Initialize l1.Latitude = 0 l1.Longitude = 0 l1.Altitude = 10000 Dim l2 As Location l2.Initialize l2.Latitude = 0 l2.Longitude = 0 l2.Altitude = -10000 Log("l1.DistanceTo(l2): " & l1.DistanceTo(l2)) End Sub Upvote 0
B4X: Sub DistanceTest Dim l1 As Location l1.Initialize l1.Latitude = 0 l1.Longitude = 0 l1.Altitude = 10000 Dim l2 As Location l2.Initialize l2.Latitude = 0 l2.Longitude = 0 l2.Altitude = -10000 Log("l1.DistanceTo(l2): " & l1.DistanceTo(l2)) End Sub
I iCAB Well-Known Member Licensed User Longtime User Jun 8, 2018 #3 I just found this link (just in case if someone else is looking) https://www.b4x.com/android/forum/threads/distance-between-two-gps-points-with-altitude.72072/ Upvote 0
I just found this link (just in case if someone else is looking) https://www.b4x.com/android/forum/threads/distance-between-two-gps-points-with-altitude.72072/