Get height of a building from a maps API

筅森魡賤 提交于 2020-01-01 09:07:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!