python osmnx – extract only big freeways of a country

Yes you can do this with OSMnx: import osmnx as ox ox.config(use_cache=True, log_console=True) G = ox.graph_from_place(‘France’, network_type=”drive”, custom_filter=”[“highway”~”motorway”]”) fig, ax = ox.plot_graph(G) See also this answer if you’d like to filter by multiple highway tag values (e.g., retain all motorways AND primary roads). Finally, note that as of OSMnx v0.15.0, the gdf_from_place and gdf_from_places functions … Read more

Cannot import name ‘CRS’ from ‘pyproj’ for using the osmnx library

I am the developer of OSMnx. There is a growing amount of misinformation and confusion in this thread, so I will give you a definitive answer. Just follow the documented installation instructions to install the latest release of OSMnx: conda config –prepend channels conda-forge conda create -n ox –strict-channel-priority osmnx If you install an old … Read more