Reputation: 273
Would it be possible to set up a specific GPS position in an App and then tell if the user is looking (holding his smartphone) at this direction? Can a rotation of the user to the left / right from that positions direction be read? (like "user looks 20 degrees to the left from the straight direction to the GPS point)
Upvotes: 1
Views: 138
Reputation: 33437
As per your question, in your case GPS receiver is only collecting absolute location with margin (inaccurate) of 3-10 meter depending on your receiver type. When your device returns the location of latitude and longitude, it does not know your orientation, if we assume you only use GPS, then the only way to calculate orientation is by movement the receiver (movement mean walking for while constantly).
To get your orientation typically using Magnetic Compass and/or Gyroscopes build in your device.
There are no final rules how to use this or that, what you need to do is to find out what is your requirement and make some tests to find the best results.
One disadvantage of using GPS constantly, is that it is power consuming (it drain the battery) so you need to make a strategy of combining differing sensors and turn on/off GPS programmatically to collecting data periodically.
And make algorithm logic to give the user the orientation regarding to the position.
I have provided some useful links:
Upvotes: 1