I added this code to my dji app so I could display distance 0n my app:
B4X:
Sub CaculateDistance
L1.Latitude=HomeLocationLatitudeMavic
L1.Longitude=HomeLocationLongitudeMavic
L2.Latitude=LatitudeMavic
L2.Longitude=LongitudeMavic
DistanceBetweenMavicAndHome = L1.DistanceTo(L2)
End Sub
It seems to be way off. The remote control is showing a distance around 4 times greater, and I think the remote control is right.