Dear All,
I would like to use the smartphone to go from a location A to a location B.
The location A ist the one who I am at the moment. It can vary as I move. The location B is fixed and has been retrieved from a file.
I would like to show on the smartphone an arrow indicating the direction to take in order to reach the location B depending on my current location. This arrow should point with a good approximation toward the location B, and if I rotate the device it should also update the pointed direction accordingly. A nice to have would be also to show the current distance to the location B.
So far I can get my current position using the GPS, as in the related GPS code example:
I guess I need to get the bearing, which is, from what I understand, the degrees related to North I shoud turn to, in order to point toward the direction of location B.
Could someone gently collaborate and point me to the right direction ? Is there any ready library I could use to reach the goal I have in mind ?
Thanks in advance to all of you who are willing to help !
Regards,
Sergio
I would like to use the smartphone to go from a location A to a location B.
The location A ist the one who I am at the moment. It can vary as I move. The location B is fixed and has been retrieved from a file.
I would like to show on the smartphone an arrow indicating the direction to take in order to reach the location B depending on my current location. This arrow should point with a good approximation toward the location B, and if I rotate the device it should also update the pointed direction accordingly. A nice to have would be also to show the current distance to the location B.
So far I can get my current position using the GPS, as in the related GPS code example:
B4X:
lblLat.Text = "Lat = " & Location1.ConvertToMinutes(Location1.Latitude)
lblLon.Text = "Lon = " & Location1.ConvertToMinutes(Location1.Longitude)
I guess I need to get the bearing, which is, from what I understand, the degrees related to North I shoud turn to, in order to point toward the direction of location B.
Could someone gently collaborate and point me to the right direction ? Is there any ready library I could use to reach the goal I have in mind ?
Thanks in advance to all of you who are willing to help !
Regards,
Sergio
Last edited: