File size: 348 Bytes
161d75f ce5e1a3 161d75f ce5e1a3 161d75f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from pydantic import BaseModel, Field
from typing import Literal, List, Union, Optional
class Longitude(BaseModel):
type: Literal['longitude']
value: float
class Latitude(BaseModel):
type: Literal['latitude']
value: float
class Geolocalisation(BaseModel):
longitude: Longitude
latitude: Latitude
name: Optional[str]
|