Skip to content

armgit / Aleph

Public Imported from GitHub
0

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

Add disclaimer

Belluxx086e2965e1f7
diff --git a/README.md b/README.md
index d3ea854..de7fe5b 100644
--- a/README.md
+++ b/README.md
@@ -16,10 +16,15 @@ Aleph does two things:
- Lets you draw a rectangle or polygon on the map and downloads **everything** inside it (buildings, elevation, HD satellite imagery, Street View photos, textured 3D models).
- Provides any of the above information for **specific points** on Earth, on the fly, via the CLI.
-This was born as a way to let LLMs quickly gather information from the physical world, but you can just use it to have piece of the Earth on your laptop and do whatever you want with it.
-
-> [!WARNING]
-> This tool uses undocumented APIs so it may break or hit rate limits.
+This was born as a way to let LLMs quickly gather information from the physical world, but you can just use it to have piece of the Earth on your laptop.
+
+> [!CAUTION]
+> Data licenses:
+> - **Street View, satellite imagery, 3D meshes**: © Google and its providers. Downloading them goes against Google's terms. Not affiliated with Google. You are responsible for how you use this tool and the data it downloads.
+> - **OSM data and geocoding**: [ODbL](https://opendatacommons.org/licenses/odbl/). Commercial use allowed with "© OpenStreetMap contributors" credit. Shared modified databases must stay ODbL.
+> - **Terrain**: [AWS Terrain Tiles](https://github.com/tilezen/joerd/blob/master/docs/attribution.md), open sources. Commercial use allowed with the credits listed there.
+>
+> Also, this tool uses undocumented APIs so it may break or hit rate limits.
<p align="center">
<img src="resources/show.svg" width="800">
diff --git a/src/capture.py b/src/capture.py
index 8ab60f3..dc6b792 100644
--- a/src/capture.py
+++ b/src/capture.py
@@ -65,6 +65,11 @@ Keep mesh/nodes/ for resume and offline export.
Filenames in the manifest and GeoJSON are relative to this run folder.
See manifest.json for settings, sources, imagery dates, and coverage notes.
+Credits:
+Street View, satellite imagery, and meshes: (c) Google and its providers.
+Map data: (c) OpenStreetMap contributors, ODbL (https://www.openstreetmap.org/copyright).
+Terrain: AWS Terrain Tiles; credit its sources (https://github.com/tilezen/joerd/blob/master/docs/attribution.md).
+
Keep this folder together. Continue with: alephgeo capture resume FOLDER
Rebuild images and metadata offline with: alephgeo capture export FOLDER
"""
diff --git a/src/pbf.py b/src/pbf.py
index f05842b..73bc7a5 100644
--- a/src/pbf.py
+++ b/src/pbf.py
@@ -806,7 +806,10 @@ class PBF:
selected = self.select(area, xml=True, polygon=polygon)
south, west, north, east = area
with atomic_path(output) as temporary, temporary.open("wb") as stream:
- stream.write((f'<?xml version="1.0" encoding="UTF-8"?>\n<osm version="0.6" generator="Aleph">\n'
+ stream.write((f'<?xml version="1.0" encoding="UTF-8"?>\n<osm version="0.6" generator="Aleph"'
+ ' copyright="OpenStreetMap and contributors"'
+ ' attribution="https://www.openstreetmap.org/copyright"'
+ ' license="https://opendatacommons.org/licenses/odbl/1-0/">\n'
f'<bounds minlat="{south}" minlon="{west}" maxlat="{north}" maxlon="{east}"/>\n').encode())
written = 0
for chunk in self.nodes(selected[0], "xml"):