File size: 450 Bytes
f5346bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
""" Data models ffor the geotagging service"""

from typing import List
from pydantic import BaseModel

class GeoTagResult(BaseModel):
   """Defines the structure for a single geotag result."""
   address: str
   latitude: float
   longitude: float
   geotag: str

class GeoTagResponse(BaseModel):
   """Defines the structure for a successful API response."""
   status: str = "success"
   query: str
   resolution: int
   result: List[GeoTagResult]