Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get height of a building from a maps API

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.

like image 251
Pedro Laguna Avatar asked Jun 21 '12 14:06

Pedro Laguna


People also ask

How do you find the height of an existing building?

The building height is the vertical distance between finished grade and the highest point on the building, provided that the measured elevation does not include fill or berms. However, on sloped sites the building height is measured from the average finished grade to the highest point on the building.

How do I get building heights on Google Maps?

On the map, hover over a spot and click a starting point for your measurement. Then, hover over another spot and click an end point. The measurement will show up in the "Ruler" window.

Is Google elevation API free?

Reminder: To use the Elevation API, you must enable billing on each of your projects and include an API key with all API or SDK requests. The Elevation API uses a pay-as-you-go pricing model.

What is elevation API?

The Elevation API provides a simple interface to query locations on the earth for elevation data. Additionally, you may request sampled elevation data along paths, allowing you to calculate elevation changes along routes.


1 Answers

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.

like image 87
scai Avatar answered Oct 20 '22 03:10

scai