iduedu.join_pt_walk_graph¶
- iduedu.join_pt_walk_graph(public_transport_g, walk_g, max_dist=20, keep_largest_subgraph=True, *, add_link_edge=True, walk_speed_m_per_min=None)[source]¶
Join public-transport and pedestrian
UrbanGraphobjects into an intermodal graph.Public-transport platform-like nodes are projected to the walk graph via
project_objects2urban_graph(). Platforms farther thanmax_distfrom the walking network are left as regular PT nodes.See also
https://iduclub.github.io/IduEdu/examples/get_any_graph.html https://iduclub.github.io/IduEdu/examples/objects_and_nearest_nodes.html
- Return type:
- Parameters:
public_transport_g (UrbanGraph)
walk_g (UrbanGraph)
max_dist (float)
keep_largest_subgraph (bool)
add_link_edge (bool)
walk_speed_m_per_min (float | None)