Skip to main content

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.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yoro_maps-0.2.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

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

Hashes for yoro_maps-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2a7d5b3dd9ecd4660bbd002100a1ae033d9ea9af7da605ce8c9ba8233c467ee1
MD5 69f04b85cb4d36490009974c7aa968d4
BLAKE2b-256 4659b730e0f8363ce420c73634191ea35423593247a67cce61b3f7094ab1fa99

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoro_maps-0.2.0.tar.gz:

Publisher: publish.yml on Altius-Academy-SNC/yoro-maps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for yoro_maps-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2274c31769d25c42693e7860d26eeaa4b28c053993d21871bf4de98acf287217
MD5 28cea58ea86e7e8b1c5c85e87930634b
BLAKE2b-256 ce0c016a6d7bc3bad9462f663aacd976cf67c9d53c1b4f6213a7d5d427f1f08b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page