OSMnx: lacks for addresses when extracting building footprints

I’m using OSMnx to get building footprints for buildings, expecting to put polygon data in grasshopper to generate building models for energy simulations. I already have building height data and other energy input for that. The question is I need building addresses along with geometry data (polygon) from OpenStreetMap to match the building height data I have.

I used ox.geometries_from_place('Helsingborg, Sweden', tags={'building':True}) to get polygons of building footprints but there are so many blank in address columns like ‘addr:city’, ‘addr:street’… But I’m pretty sure there’s data for this information because I can see the address info when searching the building on OpenStreetMap web.

For example, I searched the building called ‘Furutorpsgatan 49A’ in Helsingborg.

on OpenStreetMap website, all the information looks fine, but in the data I extracted from OSMnx there’s no address info

What should I do? Is there any mistake I made? Or Is there any other method to get building footprint data for a specific building?

Many thanks:D!

They can be points on (representing door), or inside, the polygon. One reason is there can be multiple address for one building, and multiple sides with street frontage.

Are you sure you must need the address at this moment? Not a technical user, pairing them might be non-trivial. Can you combine the data with position alone?

Thank you Kovoschiz!

I’m pretty new to OpenStreetMap, yeah what I need for now are the position and the building footprint data of each building in the selected area. But I really don’t know how to make it…Could you tell me if there are some APIs or methods to do it?

Thank you!

See the OSM wiki about https://wiki.openstreetmap.org/wiki/Key:addr

and be aware that addr: data can be independent from building shapes.

Maybe also try https://wiki.openstreetmap.org/wiki/Overpass_API or https://wiki.openstreetmap.org/wiki/Overpass_turbo to find building geometries and aditionally addr data?