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.get_graph("mali.yoromaps") # loaded once, cached per process
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
# Points of interest — every POI gets a Yoro code automatically
poi = yoromaps.add_poi(conn, 12.639, -8.002, "Grand marche", category="market")
print(poi["yoro_code"]) # "ML-4V7AK"
yoromaps.pois_near(conn, 12.64, -8.0, radius_m=500) # sorted by distance
yoromaps.pois_in_cell(conn, "ML-4V7AK") # who lives at this address?
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"),
}
License
MIT — Paul Guindo / Altius Academy SNC.
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.3.1.tar.gz
(38.6 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.3.1-py3-none-any.whl
(24.3 kB
view details)
File details
Details for the file yoro_maps-0.3.1.tar.gz.
File metadata
- Download URL: yoro_maps-0.3.1.tar.gz
- Upload date:
- Size: 38.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf133bdfc26b0461ab447bf2dac4eed52740629e9d3941b499bacabc62b84ce
|
|
| MD5 |
7c7c802d65d0a21c2774812a01e81047
|
|
| BLAKE2b-256 |
dcb431613c4f7a97150ef2f58e3c8f4d826dbb5b2faa274c466ad3af4778bd56
|
File details
Details for the file yoro_maps-0.3.1-py3-none-any.whl.
File metadata
- Download URL: yoro_maps-0.3.1-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4de56090b8b8cabaea6b18c4507324816ed9acc76181e8f4074c7960ef128563
|
|
| MD5 |
7313fc34bbdd25b3d15b6597aa04978d
|
|
| BLAKE2b-256 |
1163d8ca95a288f9cf6ebd70f8b3c736e77fbf37deed8f950405a0844b527746
|