added bootstrap buildings

This commit is contained in:
2026-06-23 09:53:39 +03:00
parent bcf0ce76e7
commit 69d63e9152
23 changed files with 507 additions and 17 deletions
Binary file not shown.
+4
View File
@@ -12,6 +12,10 @@ class BuildingsQueryRequest(BaseModel):
def validate_query_shape(self) -> "BuildingsQueryRequest":
if self.bbox is None and self.path is None:
raise ValueError("Either bbox or path must be provided")
if self.bbox is not None:
minlon, minlat, maxlon, maxlat = self.bbox
if minlon >= maxlon or minlat >= maxlat:
raise ValueError("bbox must be [minlon, minlat, maxlon, maxlat]")
return self