aequilibrae.transit.route_map_matcher#
Classes
|
- class aequilibrae.transit.route_map_matcher.RouteMapMatcher(link_gdf: GeoDataFrame, nodes_gdf: GeoDataFrame, stops_gdf: GeoDataFrame, distance_to_project=50)[source]#
- assemble_shape(df: DataFrame, enforce_single_parts=True) LineString | MultiLineString[source]#
Assembles a LineString shape from the matched path links.
- Parameters:
df – DataFrame with ‘link_id’ and ‘dir’ columns from map_match_route()
- Returns:
The assembled route shape
- Return type:
LineString
- initialize_graph()[source]#
Build the graph for links for a certain mode while splitting the closest links at stops’ projection
- Arguments:
mode_id (
int): Mode ID for which we will build the graph fordistance_to_project (
float, Optional): Radius search for links to break at the stops. Defaults to 50m