transbigdata.split_subwayline

transbigdata.split_subwayline(line, stop)

To slice the metro line with metro stations to obtain metro section information (This step is useful in subway passenger flow visualization)

Parameters:
  • line (GeoDataFrame) – Bus/metro lines

  • stop (GeoDataFrame) – Bus/metro stations

Returns:

metro_line_splited – Generated section line shape

Return type:

GeoDataFrame