Search code examples
google-street-view

Is there a way to get the right camera orientation of a google Street View Panorama with just the address?


You know, if you give the address to the Google geolocation service it returns the latitude and longitud, so you can mark the place in the map or go there in the street view thing.

Anyway, even when the place showed in street view is kinda precise, it doesn't show the orientation properly. I mean, it's not "looking at" the house what matches the address, it's just... standing in front of the house and watching the street, or the sky, or whatever you want, but not the house.


Solution

  • I solved this calculating the position of the house I wanted to show, then the position of the next and the previous, so I got 3 points and I can calculate the perpendicular direction.