The Google Maps API geocodes an address to a point. I can use that point to find the nearest panorama (street view) image. I can then determine the heading based on the two points and show the panorama pointed at the right house.
The problem is that in some cases such as corner lots, the closest panorama might be on a different street. For example, a house with an address of 654 NW 4th Street is on the corner of 4th and Greenwood. The closest panorama is showing on Greenwood instead of 4th so I get a picture of the side of the house instead of the house.
Am I doing something wrong here? Is there a way to get a list of panorama's so that I can find one that is on the correct street?
It's odd because the correct panorama shows if using Google directly. E.g.:
Here is a JSFiddle demonstrating the issue.