Osmnx

Latest version: v2.0.1

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 12

1.1.0

- add graph-constrained spatial sampling function
- add add_node_elevations_raster function to add node elevations from local raster file(s)
- add add_node_elevations_google function and deprecate old add_node_elevations function
- add faster streamlined nearest_nodes and nearest_edges functions to distance module
- deprecate old get_nearest_node, get_nearest_nodes, get_nearest_edge, and get_nearest_edges
- add utils_geo.interpolate_points function and deprecate redistribute_vertices in favor of it
- add vectorized calculate_bearing function and deprecate get_bearing in favor of it
- expose individual street network stats functions in stats module
- deprecate the extended_stats function in stats module
- add network orientation and entropy stats functions to bearing module
- add plot_orientation function to bearing module to polar histograms of graph edge bearings
- add route_linewidths parameter to plot_graph_routes function
- handle relations of type "boundary" in geometries module
- multi-index GeoDataFrames returned from geometries module by element type and osmid
- ensure all nodes have integer IDs after graph intersection consolidation
- vectorize add_edge_lengths, add_edge_grades, and add_edge_bearings functions
- improve save_graph_xml speed
- improve geocoder module error messages
- improve handling of node geometry when converting graph to/from GeoDataFrames
- fix network_type filters allowing ways tagged "bus_guideway"
- fix handling of boolean type conversion in load_graphml
- fix truncate_graph_dist retaining unreachable nodes
- fix bug in consolidate_intersections when pygeos is installed
- move add_edge_lengths function from utils_graph to distance module
- remove descartes dependency in line with geopandas

1.0.1

- fix network_type filters allowing ways tagged "planned"
- fix "drive" network_type allowing some alleys
- fix intersection consolidation for compatibility with v1.0 node ids/indexing
- fix python 3.6 compatibility
- deprecate folium polyline styling arguments

1.0.0

- set use_cache=True by default
- add ability to query a place by OSM ID in geocoder.geocode_to_gdf function
- add optional setting for download/cache-only mode
- replace md5 with sha1 for cache filename hashing
- replace streets_per_node graph attribute with equivalent street_count node attribute
- remove redundant osmid node attribute
- make graph_to_gdfs multi-index the edges GeoDataFrame by u, v, key
- refactor consolidate_intersections function for better speed and efficiency
- refactor count_streets_per_node function for better speed and efficiency
- refactor folium module for better speed and efficiency
- refactor get_undirected functionality for better speed and efficiency
- extract all private/internal .osm XML functionality into new osm_xml module
- deprecate io.save_graph_xml with warning (function moved to osm_xml module)
- remove internal \_is_simplified function
- remove deprecated pois module
- remove deprecated footprints module
- remove deprecated utils_graph.induce_subgraph function
- remove deprecated node_type parameter from io.load_graphml function

0.16.2

- improve graph_from_gdfs speed and efficiency
- improve plot_route_folium speed and efficiency
- fix remove_isolated_nodes function mutating the passed-in graph
- fix gephi compatibility in save_graphml
- add customizable node/edge attribute data type arguments to load_graphml
- deprecate old node_type argument in load_graphml
- expose bidirectional_network_types via config function

0.16.1

- fix handling graphs with no intersections in consolidate_intersections
- fix consolidate_intersections returning GeoSeries without CRS attribute
- fix response caching to save only when status code is 200
- fix elevation module's grade absolute value calculation when grade is null
- move shortest path functions from utils_graph module to distance module

0.16.0

- new geometries module for creating GeoDataFrames from tag/value queries
- deprecate old pois and footprints modules (replaced by geometries module)
- auto-select first Polygon/MultiPolygon when geocoding with which_result=None
- new k*shortest_paths function to solve \_k* shortest paths from origin to destination
- new shortest_path convenience function
- new get_digraph function to correctly convert MultiDiGraph to DiGraph
- miscellaneous performance improvements and optimizations
- deprecate induce_subgraph function
- remove deprecated boundaries module (replaced by geocoder module in v0.15.0)
- remove deprecated utils_geo.geocode function (replaced by geocoder.geocode function in v0.15.0)

Page 5 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.