Skip to content

Commit

Permalink
Merge pull request #415 from knaaptime/drivetimes
Browse files Browse the repository at this point in the history
fix bug when adding drive times to a network from osmnx
  • Loading branch information
knaaptime authored Jan 23, 2025
2 parents 6438909 + 358175b commit a1264fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geosnap/io/networkio.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_network_from_gdf(
impedance = "length"
graph = ox.graph_from_polygon(gdf.union_all(), network_type=network_type)
if add_travel_times:
graph = ox.add_edge_speeds(graph, default_speeds)
graph = ox.add_edge_speeds(graph, hwy_speeds=default_speeds)
graph = ox.add_edge_travel_times(graph)
impedance = "travel_time"

Expand Down

0 comments on commit a1264fd

Please sign in to comment.