I'm trying to get different classifications of road type in OSM with python, after browsed several relevant web pages, I've got this so far:
import osmnx as ox
place_name = "zurich, switzerland"
graph = ox.graph_from_place(place_name, network_type='drive')
fig, ax = ox.plot_graph(graph, fig_height=5, node_size=0)
the network_type only include 'drive','walk',etc but I'd like to get the Highway tag, like'primary','secondary','tertiary',this kind of type road network respectively, how should I do?