digiwild_bern / app /geolocalisation /class_geolocalisation.py
katospiegel's picture
Upload 104 files
20bdfba verified
raw
history blame contribute delete
328 Bytes
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