A Python tool for generating 3D topographical models from Google Maps Elevation API data. It generates OBJ files for visualization.
- Python 3.13+
- uv
- Google Maps API key
-
Clone this repository
-
Update your environment with uv:
uv sync -
Activate the virtual environment:
- Windows:
.venv\Scripts\activate - Unix/MacOS:
source .venv/bin/activate
- Windows:
-
Create a
.envfile and add your Google Maps API key:GOOGLE_MAPS_API_KEY=your_api_key_here
-
Fill in the 4 corners in main.py
-
Run the main script to collect elevation data:
uv run topography/main.py
-
Generate 3D models:
uv run topography/utils/json_to_obj.py
(Make sure to change the input file name)
-
Visualize the data:
uv run topography/utils/visualize_topography.py
(Make sure to change the input file name) It may be very slow depending on the number of points the json file contains.