Why are some street-view images from the wrong angle?

后端 未结 2 1843
忘了有多久
忘了有多久 2020-12-11 03:36

I am using the Google Street View Image API to display an image of an address. Although most of the images are amazingly accurate, I\'ve noticed a few that are from the wro

2条回答
  •  死守一世寂寞
    2020-12-11 04:05

    I have been noticing that too, google seems to be using a different algorithm to display that image (in the left panel) on its site and it is more accurate as it is at the front shot of the location.

    There is no direct way to get that angle with their "Street View Image API" but you can use the javascript API to calculate that angle and pass it on to the Image API.

    The question here is how can we know which is front of the building?, well the front is usually where the entrance is from the street. So, you can use the DirectionService to get the nearest transportation start location which is usually the road at the entrance of the building, using this location you can now easily compute the heading using their geometry utility methods and pass this on to your Image API.

提交回复
热议问题