snap_line_to_anchor

snap_line_to_anchor#

zeroheliumkit.src.routing.snap_line_to_anchor(anchor: Anchor, line: LineString) LineString[source]#

Snaps the linestring to the anchor position and direction

Parameters:
  • anchor (Anchor) – line start point will be snapped to this anchor

  • line (LineString) – linestring to be snapped

Returns:

A linestring snapped to the anchor position and direction.

Return type:

LineString