from pydantic.main import BaseModel class Coordinate(BaseModel): latitude: float longitude: float def __str__(self): return f"({round(self.latitude, 6)}, {round(self.longitude, 6)})"