14 lines
235 B
Python
14 lines
235 B
Python
|
|
from pydantic import BaseModel
|
||
|
|
|
||
|
|
from app.schemas.place import PlaceDetail
|
||
|
|
|
||
|
|
|
||
|
|
class NearbyPlace(PlaceDetail):
|
||
|
|
distance_m: float
|
||
|
|
|
||
|
|
|
||
|
|
class NearbyResponse(BaseModel):
|
||
|
|
search_radius_m: int
|
||
|
|
count: int
|
||
|
|
places: list[NearbyPlace]
|