Skip to main content

Offline maps, routing, and POI for Africa — companion to yoro geocoding

Project description

Yoro Maps

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.0.tar.gz (14.9 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.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file yoro_maps-0.1.0.tar.gz.

File metadata

  • Download URL: yoro_maps-0.1.0.tar.gz
  • Upload date:
  • Size: 14.9 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.0.tar.gz
Algorithm Hash digest
SHA256 d8253e079d1d6f1b386cacbb7790f9bbcd123e3568f0271412f366d6ad2b58a7
MD5 a4a0b18ccb173370217eb4a530e6d141
BLAKE2b-256 658bd94c1a52d8cbfcc8af229030e6ba4657fd67de24c501051499f2564a3dd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoro_maps-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: yoro_maps-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1df3cb3a54f257208cc52315fba5058c3cd6168cfddc5e1fa89d471f0085fc
MD5 6ef1cca10dc86155fb083eaaf48d9a40
BLAKE2b-256 f144a05de0f8268e34147ba5917a6b6f607247c1ae0988df6ec94f4801abe560

See more details on using hashes here.

Provenance

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