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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file yoro_maps-0.2.0.tar.gz.
File metadata
- Download URL: yoro_maps-0.2.0.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a7d5b3dd9ecd4660bbd002100a1ae033d9ea9af7da605ce8c9ba8233c467ee1
|
|
| MD5 |
69f04b85cb4d36490009974c7aa968d4
|
|
| BLAKE2b-256 |
4659b730e0f8363ce420c73634191ea35423593247a67cce61b3f7094ab1fa99
|
Provenance
The following attestation bundles were made for yoro_maps-0.2.0.tar.gz:
Publisher:
publish.yml on Altius-Academy-SNC/yoro-maps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yoro_maps-0.2.0.tar.gz -
Subject digest:
2a7d5b3dd9ecd4660bbd002100a1ae033d9ea9af7da605ce8c9ba8233c467ee1 - Sigstore transparency entry: 1113028621
- Sigstore integration time:
-
Permalink:
Altius-Academy-SNC/yoro-maps@6ab185c9922e02a672c366d5f132262414eb793a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Altius-Academy-SNC
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ab185c9922e02a672c366d5f132262414eb793a -
Trigger Event:
release
-
Statement type:
File details
Details for the file yoro_maps-0.2.0-py3-none-any.whl.
File metadata
- Download URL: yoro_maps-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2274c31769d25c42693e7860d26eeaa4b28c053993d21871bf4de98acf287217
|
|
| MD5 |
28cea58ea86e7e8b1c5c85e87930634b
|
|
| BLAKE2b-256 |
ce0c016a6d7bc3bad9462f663aacd976cf67c9d53c1b4f6213a7d5d427f1f08b
|
Provenance
The following attestation bundles were made for yoro_maps-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on Altius-Academy-SNC/yoro-maps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yoro_maps-0.2.0-py3-none-any.whl -
Subject digest:
2274c31769d25c42693e7860d26eeaa4b28c053993d21871bf4de98acf287217 - Sigstore transparency entry: 1113028660
- Sigstore integration time:
-
Permalink:
Altius-Academy-SNC/yoro-maps@6ab185c9922e02a672c366d5f132262414eb793a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Altius-Academy-SNC
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ab185c9922e02a672c366d5f132262414eb793a -
Trigger Event:
release
-
Statement type: