Spaces:
Sleeping
Sleeping
File size: 328 Bytes
20bdfba |
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
class Longitude(BaseModel):
type: Literal['longitude']
value: float
class Latitude(BaseModel):
type: Literal['latitude']
value: float
class Geolocalisation(BaseModel):
longitude: Longitude
latitude: Latitude
name: str
|