Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Update deprecated osmnx method to get buildings #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/lessons/L3/retrieve-osm-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ Great! Now we can see that our graph contains the nodes (blue circles) and the e

It is also possible to retrieve other types of OSM data features with osmnx.

- Let's download the buildings with ``buildings_from_place()`` function and plot them on top of our street network in Kamppi. Let's also plot the Polygon that represents the area of Kamppi,
- Let's download the buildings with ``footprints_from_place()`` function from OSM's ``footprints`` module and plot them on top of our street network in Kamppi. Let's also plot the Polygon that represents the area of Kamppi,
Helsinki that can be retrieved with ``gdf_from_place`` function.

.. ipython:: python

area = ox.gdf_from_place(place_name)
buildings = ox.buildings_from_place(place_name)
buildings = ox.footprints.footprints_from_place(place_name, footprint_type='building')
type(area)
type(buildings)

Expand Down