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[django] # Django integration
pip install yoro-maps[tiles] # Tile downloading
Build a map database
# Download OSM data and build road graph for Mali
yoromaps download ML --output mali.yoromaps
# With map tiles (slower, ~200+ MB)
yoromaps download ML --output mali.yoromaps --tiles --zoom-max 14
Route between Yoro codes
yoromaps route mali.yoromaps ML-ABC ML-XYZ
import yoromaps
conn = yoromaps.open_db("mali.yoromaps")
result = yoromaps.route(conn, start_lat=12.6, start_lon=-8.0, end_lat=14.5, end_lon=-4.0)
print(f"{result.distance_km} km, {result.duration_min} min")
Django integration
# settings.py
import yoromaps
DATABASES = {
"default": { ... },
"maps": yoromaps.db_config("/data/mali.yoromaps"),
}
DATABASE_ROUTERS = ["yoromaps.django.router.YoroMapsRouter"]
# urls.py
urlpatterns = [
path("maps/", include("yoromaps.django.urls")),
]
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.1.1.tar.gz.
File metadata
- Download URL: yoro_maps-0.1.1.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0807d1205e46b1be365a38eb3d50fc1aacc9d849de82e5d6f89f57ce989b0bec
|
|
| MD5 |
86ffe1b00dec98c6c478b1e816e55a05
|
|
| BLAKE2b-256 |
d5fc4ff4d97aa728ce70fd51b847980c110b7b308aa8940502f54f1077241663
|
Provenance
The following attestation bundles were made for yoro_maps-0.1.1.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.1.1.tar.gz -
Subject digest:
0807d1205e46b1be365a38eb3d50fc1aacc9d849de82e5d6f89f57ce989b0bec - Sigstore transparency entry: 1112502116
- Sigstore integration time:
-
Permalink:
Altius-Academy-SNC/yoro-maps@027fd35ad74ee369a8838ae5a83a678fa5c31f6a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Altius-Academy-SNC
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@027fd35ad74ee369a8838ae5a83a678fa5c31f6a -
Trigger Event:
release
-
Statement type:
File details
Details for the file yoro_maps-0.1.1-py3-none-any.whl.
File metadata
- Download URL: yoro_maps-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.8 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 |
239254bc2d6d87a273863ed5eede7c72d80de4d675868fe35fae74ed4a0e5072
|
|
| MD5 |
84c18a64c4e669f6cf22cbf6d8d200d2
|
|
| BLAKE2b-256 |
5f61e362392ab92e1f40896be4a4b34d70133121fa0f05e891a6da92c272e640
|
Provenance
The following attestation bundles were made for yoro_maps-0.1.1-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.1.1-py3-none-any.whl -
Subject digest:
239254bc2d6d87a273863ed5eede7c72d80de4d675868fe35fae74ed4a0e5072 - Sigstore transparency entry: 1112502124
- Sigstore integration time:
-
Permalink:
Altius-Academy-SNC/yoro-maps@027fd35ad74ee369a8838ae5a83a678fa5c31f6a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Altius-Academy-SNC
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@027fd35ad74ee369a8838ae5a83a678fa5c31f6a -
Trigger Event:
release
-
Statement type: