added bootstrap buildings
This commit is contained in:
Binary file not shown.
+1
-1
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user