Get the transportation network in Detroit, MI#
[1]:
from pyplaces import overture_maps as om
import folium
c:\Users\tedba\miniforge3\envs\pyplaces-test\lib\site-packages\tqdm\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
from .autonotebook import tqdm as notebook_tqdm
[3]:
# get trunk routes, primary and residential roads in Detroit
gdf_segments = om.overture_transportation_from_place("Detroit, MI")
res_primary_segments = gdf_segments[(gdf_segments["class"] == "residential") | (gdf_segments["class"] == "primary") | (gdf_segments["class"] == "trunk")]
[6]:
m = plot_geodataframes(res_primary_segments[["id","class","geometry"]],popup_columns=["class"])
m
[6]:
Make this Notebook Trusted to load map: File -> Trust Notebook