mappymatch.utils.plot.trajectory_segment#
Functions
|
Plot a TrajectorySegment showing the trace, path, matches, and cutting points. |
- mappymatch.utils.plot.trajectory_segment.plot_trajectory_segment(segment: TrajectorySegment, m: Map | None = None, trace_point_color: str = 'black', path_line_color: str = 'red', path_line_weight: int = 10, path_line_opacity: float = 0.8, show_matches: bool = True, match_point_color: str = 'blue', show_cutting_points: bool = True, cutting_point_color: str = 'orange')[source]#
Plot a TrajectorySegment showing the trace, path, matches, and cutting points.
- Args:
segment: The TrajectorySegment to plot. m: The folium map to plot on. If None, a new map will be created. trace_point_color: The color for trace points. path_line_color: The color for the path line. path_line_weight: The weight of the path line. path_line_opacity: The opacity of the path line. show_matches: Whether to show matched points. match_point_color: The color for matched points. show_cutting_points: Whether to show cutting points. cutting_point_color: The color for cutting points.
- Returns:
A folium map with the trajectory segment plotted.