aequilibrae.transit.functions.breaking_links_for_stop_access#
Functions
|
Breaks links at the closest points for the nodes (transit stops) nearby, within a certain tolerance. |
- aequilibrae.transit.functions.breaking_links_for_stop_access.split_links_at_stops(stops: GeoDataFrame, links: GeoDataFrame, tolerance: float = 50) List[GeoDataFrame][source]#
Breaks links at the closest points for the nodes (transit stops) nearby, within a certain tolerance. New nodes are created at split points with IDs continuing from the maximum of the existing a_node and b_node values.
- Parameters:
stops – GeoDataFrame of points
links – GeoDataFrame of linestrings. Must contain “a_node” and “b_node” columns.
tolerance – Search radius.
- Returns:
- A list containing two GeoDataFrames:
broken_links: The provided links where some have been split at stop locations. Contains updated “a_node”, “b_node”, and “geometry”. Original link attributes are preserved (duplicated for splits).
new_nodes: Point geometries representing the new nodes created at split locations, with IDs starting from start_node_id.
- Return type:
List[GeoDataFrame]