movingpandas.TrajectoryCollection.to_line_gdf#

TrajectoryCollection.to_line_gdf(columns=None, return_orig_tz=False)#

Return the trajectories’ line segments as GeoDataFrame.

Parameters:
  • columns (list[string]) – List of column names to copy from the trajectory dataframe

  • return_orig_tz (bool) – If True, adds timezone info back to the t and prev_t columns

Return type:

GeoDataFrame