Search code examples
androidaugmented-reality

To get the location of the building


Is it possible to get the location of the building shown in the Camera view using Augmented Reality in Android??

I have the GPS coordinates of the mobile but now i want to get the GPS coordinates of the building shown in the Camera view???

Please suggest me some ideas?????


Solution

  • If you have the GPS coordinate of your mobile phone and the direction (using the compass of the mobile phone) in which it is hold, you could use some trigonometry to approximate the location of the building. The remaining problem is that you have to somewhere estimate how far the building is away from your phone.

    But if you assume for example that you're always walking in streets and the point to a building, it should be easier to find the building.