Really you just need a length and an angle to complete the triangle. The length is easy: measure distance from base of building to any point where you know the angle. But getting the angle from a point to the top of the building is tricky. I don’t know if any clever way to estimate that without stereo imagery.
A lot of this stuff is automatically calculated when a digital surface model (DSM) is generated from stereo pairs of images. So you might be able to just look it up in Google Earth. This is the data (probably blended with many other sources such as LiDAR and ground survey data) Google uses to extrude buildings into 3D models.
P.S. this was an assignment in 1st year for me. Estimate the height of the CN Tower from some aerial photos. I feel like I should remember more.
I tried it with a tall building (Turning Torso in Malmö), and got 199 m on my first attempt and 195 on my second. The correct height is 190.4 m, so pretty close. The first attempt was 100 m away, the second more than 1.2 km.
I then tried it with the Chrysler building from the other side of East river about 1.5 km away, and got 274 m which is close to the actual 282 m.
You can probably use more sophisticated methods that downloads the 360 image as a stereographic projection and extracts the pitch angle from there, but for something that's a close enough one off I think this works ok.
[0] https://en.wikipedia.org/wiki/Trigonometric_functions#Right-...
[1] https://www.gpsvisualizer.com/calculators
[2] https://www.trekview.org/blog/2020/decoding-google-street-vi...
Related, maybe OT, but you seem a person that knows a lot more about this than I would know: more exactly I wanted to ask you if you know of a decent enough method to get the height of a building based on GoogleStreetView.
Meaning, I'm "inside" GoogleStreetView, I'm looking at a "building" from outside on the street, I know the geo coordinates of the camera that took the photo, I know the geo coordinates of the building, so that I know the distance between the photo camera and the building, I can "count" (for lack of a better word) the building's size in screen pixels (or some other unit/reference? which one?), and based on all that I'm curious if one can get the real height in meters of said building.
From what I could found around on some other forums there were people mentioning the aperture of the GoogleStreetView photo camera being part of the "equation" to compute it all, and that would be a problem because we do not know the values for the aperture. I have no idea though if all that discussion was on the subject or not.