Quick GPS question -I am trying to get the direction of travel and I wanted to know the following , Much appreciated in Advanced.
1- Does the GPS bearing Bearing matter which way you hold the phone reading Erel's notes here
QUESTION 1 is there a way to get the direction of travel without worrying if the handset is in a bag held in a funny way (upside down ) or at an angle.. I need to know if I am travelling down a river in a direction or up a river in the opposite direction so I need to know the bearing without worrying which way the device is held.
Any help much apprecieted or simple calculation example.. even better
QUESTION 2
Is there a library that can handle this in B4A, with this taken into consideration.
Thanks
1- Does the GPS bearing Bearing matter which way you hold the phone reading Erel's notes here
"In GPS_LocationChanged event you can easily calculate the direction to the target with Location.BearingTo. Point to the north and test it.
When you get this step correctly you need adjust the direction based on the current orientation."
When you get this step correctly you need adjust the direction based on the current orientation."
QUESTION 1 is there a way to get the direction of travel without worrying if the handset is in a bag held in a funny way (upside down ) or at an angle.. I need to know if I am travelling down a river in a direction or up a river in the opposite direction so I need to know the bearing without worrying which way the device is held.
Any help much apprecieted or simple calculation example.. even better
QUESTION 2
Is there a library that can handle this in B4A, with this taken into consideration.
Thanks