File size: 206 Bytes
dfbe385
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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)})"