iOS Question iLocation lack of BearingTo

elpic76

Member
Licensed User
Longtime User
Dear folks,
I'm converting a B4A app to B4i:
  • in B4A I used the library Location and in particular the function BearingTo in order to obtain the direction toward a previously saved location
  • in B4i I'm using iLocation but I can't find the equivalent of the BearingTo function.
I found also this old interesting thread: https://www.b4x.com/android/forum/threads/calculate-bearing-to-other-location.46513/
So do you know if the BearingTo is available also on B4i or could you give me some advices on how to solve this issue?
Best regards
 

Andris

Active Member
Licensed User
Longtime User
Dear folks,
I'm converting a B4A app to B4i:
  • in B4A I used the library Location and in particular the function BearingTo in order to obtain the direction toward a previously saved location
  • in B4i I'm using iLocation but I can't find the equivalent of the BearingTo function.
I found also this old interesting thread: https://www.b4x.com/android/forum/threads/calculate-bearing-to-other-location.46513/
So do you know if the BearingTo is available also on B4i or could you give me some advices on how to solve this issue?
Best regards
Take a look here - I had the same problem and this routine works nicely. https://www.b4x.com/android/forum/threads/calculate-bearing-to-other-location.46513/post-292085

(Haha - I just realized that this link is the same as what you referenced! But anyway, it's a good method and I suggest you just stick with it for your app.)
 
Upvote 1
Top