Skip to content

Instantly share code, notes, and snippets.

@joaofig
Created November 11, 2024 10:22
Show Gist options
  • Save joaofig/aef7fb7afb94cc0f3b5e6bd43e22cf18 to your computer and use it in GitHub Desktop.
Save joaofig/aef7fb7afb94cc0f3b5e6bd43e22cf18 to your computer and use it in GitHub Desktop.
A GPS Segment structure
class GpsSegment(PointList):
def __init__(self,
point: RefPoint):
super().__init__()
self.append(point)
def __repr__(self):
return f"GpsSegment({self.points})"
def append_edge(self, edge: MapEdge) -> None:
for point in edge.points:
self.append(point)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment