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[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


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.1.1.tar.gz (26.3 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.1.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

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

Hashes for yoro_maps-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0807d1205e46b1be365a38eb3d50fc1aacc9d849de82e5d6f89f57ce989b0bec
MD5 86ffe1b00dec98c6c478b1e816e55a05
BLAKE2b-256 d5fc4ff4d97aa728ce70fd51b847980c110b7b308aa8940502f54f1077241663

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoro_maps-0.1.1.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.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

Hashes for yoro_maps-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 239254bc2d6d87a273863ed5eede7c72d80de4d675868fe35fae74ed4a0e5072
MD5 84c18a64c4e669f6cf22cbf6d8d200d2
BLAKE2b-256 5f61e362392ab92e1f40896be4a4b34d70133121fa0f05e891a6da92c272e640

See more details on using hashes here.

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

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