up vote
0
down vote
favorite
i just started my first mobile application with react native and part of my app is to open the camera and display places with their GPS cords (the seats are stored in the server) and show how much distance between the phone and the place .
my algorithm is:
- open the terminal camera
- detect terminal location
- have direction
- calculate the view angle of the camera
- testing if a point from the points return from the server enters in view angle(captured by the camer user)
and my problem is that I do not know how or with which sensor to detect the direction of the terminal or how to have the angle view of the camera or how to test if a point in the field of vision
this an example