问题
It's any public maps API (google, microsoft, openstreet...) that returns the height of the roof for certain points?
Imagine: you request some address and the API returns the coordinates, some information and the height of the building, if available.
回答1:
OpenStreetMap has a height tag and various other building related tags like building:levels from which you could estimate the height. However note that currently most buildings lack those tags as they aren't widely in use so far. Still you could give it a try and request all buildings around a specific point or area using Overpass API / overpass turbo and then look for those tags.
回答2:
I'm almost certain the answer is "no". To get this information you'd need LIDAR data or something similar, and there is no global dataset of LIDAR data at anything like the resolution necessary to accurately determine the height of an individual building roof.
Many of the web-mapping services use terrain and building elevation models internally to calculate their "3d" view modes, but I don't think this data is ever exposed, and even if it were I think it's only suitable for display purposes rather than for performing any calculations.
来源:https://stackoverflow.com/questions/11140895/get-height-of-a-building-from-a-maps-api