endpoint setup
This commit is contained in:
26
app/schemas/location_create_schema.py
Normal file
26
app/schemas/location_create_schema.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class LocationCreate(BaseModel):
|
||||
place_id: int
|
||||
osm_id: int
|
||||
osm_type: str
|
||||
|
||||
latitude: float
|
||||
longitude: float
|
||||
|
||||
house_number: str | None = None
|
||||
road: str
|
||||
city: str
|
||||
county: str
|
||||
state: str
|
||||
postcode: str
|
||||
country: str
|
||||
country_code: str
|
||||
|
||||
display_name: str
|
||||
|
||||
bbox_lat_min: float
|
||||
bbox_lat_max: float
|
||||
bbox_lon_min: float
|
||||
bbox_lon_max: float
|
||||
Reference in New Issue
Block a user