Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,6 +8,38 @@ sdk_version: 5.46.1
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
+
short_description: A simple learning project to explore H3 geospatial indexing.
|
| 12 |
---
|
| 13 |
|
| 14 |
+
Type any address and get:
|
| 15 |
+
- Exact coordinates (latitude, longitude)
|
| 16 |
+
- H3 geotag (hierarchical hexagonal identifier)
|
| 17 |
+
- Interactive map with hexagon boundaries
|
| 18 |
+
|
| 19 |
+
#### How it works
|
| 20 |
+
|
| 21 |
+
1. Address → Coordinates: Uses `OpenStreetMap Nominatim` to find locations
|
| 22 |
+
2. Coordinates → H3 Geotag: Converts to Uber's H3 hexagonal grid system
|
| 23 |
+
3. Visualisation: Shows results on an interactive map
|
| 24 |
+
|
| 25 |
+
#### Examples
|
| 26 |
+
|
| 27 |
+
Try typing:
|
| 28 |
+
- San Francisco - City names
|
| 29 |
+
- 37.7749,-122.4194 - Direct coordinates
|
| 30 |
+
- Eiffel Tower - Landmarks
|
| 31 |
+
- Main Street - Generic addresses (shows multiple matches)
|
| 32 |
+
|
| 33 |
+
#### What's H3?
|
| 34 |
+
|
| 35 |
+
H3 divides Earth into hexagonal cells at different resolutions:
|
| 36 |
+
- Low resolution (0-5): Continental/country level
|
| 37 |
+
- Medium resolution (6-10): City/neighborhood level
|
| 38 |
+
- High resolution (11-15): Building/room level
|
| 39 |
+
|
| 40 |
+
#### Tech Stack
|
| 41 |
+
|
| 42 |
+
- Backend: FastAPI + H3 library
|
| 43 |
+
- Geocoding: OpenStreetMap Nominatim (free service)
|
| 44 |
+
- Frontend: Gradio interface
|
| 45 |
+
- Maps: Plotly with hexagon boundary visualization
|