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.
+1 -1
View File
@@ -34,7 +34,7 @@ def sample_path(start: GeoPoint, end: GeoPoint, n: int) -> list[PathPoint]:
raise ValueError("n must be at least 2")
_, _, total_distance = WGS84_GEOD.inv(start.lon, start.lat, end.lon, end.lat)
inner = WGS84_GEOD.npts(start.lon, start.lat, end.lon, end.lat, n - 2)
inner = [] if n == 2 else WGS84_GEOD.npts(start.lon, start.lat, end.lon, end.lat, n - 2)
coords = [(start.lon, start.lat), *inner, (end.lon, end.lat)]
step = total_distance / (n - 1)
return [