Offline maps, routing, and POI for Africa — companion to yoro geocoding
Project description
Yoro Maps
Documentation | PyPI | GitHub
Offline maps, routing, and POI for Africa — companion to yoro geocoding.
Install
pip install yoro-maps
pip install yoro-maps[extract] # OSM data extraction
pip install yoro-maps[django] # Django integration
pip install yoro-maps[tiles] # Tile downloading
Build a map database
yoromaps download ML --output mali.yoromaps
Route between Yoro codes
yoromaps route mali.yoromaps ML-4V7AK ML-5G62E
import yoromaps
conn = yoromaps.open_db("mali.yoromaps")
graph = yoromaps.Graph.from_db(conn) # load once
r = graph.route(12.639, -8.003, 14.489, -4.197) # Bamako → Mopti
print(f"{r.distance_km} km, {r.duration_min} min") # 551.8 km, 681.0 min
Update maps
yoromaps update mali.yoromaps
# → Downloads only if OSM data has changed. POI and tiles are preserved.
Tested performance
| Route | Distance | Compute |
|---|---|---|
| Bamako → Mopti | 551.8 km | 6.3s |
| Bamako → Tombouctou | 812.2 km | 6.6s |
| Urban (Bamako) | 3.8 km | 0.5s |
Django integration
import yoromaps
DATABASES = {
"default": { ... },
"maps": yoromaps.db_config("/data/mali.yoromaps"),
}
DATABASE_ROUTERS = ["yoromaps.django.router.YoroMapsRouter"]
License
MIT — Paul Guindo / Altius Academy SNC.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yoro_maps-0.2.1.tar.gz
(31.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
yoro_maps-0.2.1-py3-none-any.whl
(19.3 kB
view details)
File details
Details for the file yoro_maps-0.2.1.tar.gz.
File metadata
- Download URL: yoro_maps-0.2.1.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71763331155f1f151fd562ea11f9b469f500d8b9c49936575e9a91dcd7e7eb12
|
|
| MD5 |
db554a54f2304c105af89f18e3a454aa
|
|
| BLAKE2b-256 |
3daa6252b4ea9f1291bd5b17f9af440d49eb9a9dd0a591f1bc0d95beddc63827
|
File details
Details for the file yoro_maps-0.2.1-py3-none-any.whl.
File metadata
- Download URL: yoro_maps-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ebe3ccbffd539764b3b26b9b6f177f69fcd5f77528fde26c2f939c9ea55ee0b
|
|
| MD5 |
df59550288197380c26bff942c61a72f
|
|
| BLAKE2b-256 |
2147aecfd542b69886bbada605dad8496886ccc606c8af14e9c3ff8983981361
|