Skip to content

armgit / Aleph

Public Imported from GitHub
0

Give satellite imagery, terrain data, buildings, streetview photos to your LLM

Fix "open in streetview" fov

Belluxx9ee3dfb79f76
diff --git a/src/capture.py b/src/capture.py
index 54dc80a..b9f83a6 100644
--- a/src/capture.py
+++ b/src/capture.py
@@ -249,7 +249,8 @@ def capture_streets(stage, run, folder, client, progress):
viewpoint=f"{photo['lat']},{photo['lon']}",
heading=photo["heading"],
pitch=0,
- fov=photo["fov"],
+ # Maps links support 10–100°, unlike the thumbnail endpoint.
+ fov=max(10, min(100, photo["fov"])),
pano=photo["pano_id"],
)
except MissingImagery as error: