I am creating an AR application for Android that will record the names of places / buildings / etc on camera viewing when I point to places with a live camera. I get my current location in lat and long, I can also get a list of places (with their long / long) in a certain radius from my current location.
However, the most confusing part for implementation is to show only those places that are currently visible in the camera (do not show places). One idea was to calculate the azimuth of my current location, and then calculate the azimuth of all the places that I get in a given radius, and then calculate the horizontal angle of the camera using getHorizontalViewAngle()
and with all these parameters, calculate which of the azimuths of the place falls into this interval: t21>.
However, I think this is not a very effective way, can someone suggest my solution, or maybe someone had a similar problem and find a good solution. If itβs hard for me to understand my problem, let me know and I will try to explain in more detail.
source share