A graph-based routing library for dynamic routing.
Project description
Multi Modal Router
The Multi Modal Router is a graph-based routing engine that allows you to build and query any hub-based network. It supports multiple transport modes like driving, flying, or shipping, and lets you optimize routes by distance, time, or custom metrics. It can be expanded to any n-dimensional space making it versatile in any coordinate space
NOTE: This project is a work in progress and features might be added and or changed
In depth Documentation
command line interface documentation
Features
Building Freedom / Unlimited Usecases
The graph can be build from any data aslong as the required fields are present (example). Whether your data contains real world places or you are working in a more abstract spaces with special coordinates and distance metrics the graph will behave the same (with minor limitations due to dynamic distance calculation, but not a problem when distances are already precomputed. solutions).
Example Usecases
-
real world flight router
-
social relation ship graph
- uses user data like a social network where users are connected through others via a group of other users
- builds a graph with
usersas Hubs - connects users based on know interactions or any other connection meric
findsusers that are likely toshare;interests,friends,a social circle, etc.
-
coordinate based game AI and pathfinding
- uses a predefined path network (e.g. a simple maze)
buildsthe garph representation of the networkfindsthe shortest way to get from any pointAto any other pointBin the network- you can checkout a simple example implementation for a maze pathfinder here
graph visualizations
Use the build-in visualization tool to plot any 2D or 3D Graph.
Important considerations for your usecase
Depending on your usecase and datasets some features may not be usable see solutions below
potential problems based on use case
Please check your data for the following
| distance present | coordinate format | unusable features | special considerations |
|---|---|---|---|
| YES | degrees | None | None |
| YES | not degrees | runtime distance calculations | set drivingEnabled = False or do this |
| NO | degrees | None | distances must be calculated when preprocessing |
| NO | not degrees | ALL | U cant build the graph with neither distances or supported coordinates! solution |
example dataframe with the required fields
License
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 multimodalrouter-0.1.11.tar.gz.
File metadata
- Download URL: multimodalrouter-0.1.11.tar.gz
- Upload date:
- Size: 331.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6e7736bf2982864df3916cbe47036b110031c9bb6f01b4c004719016302a0d0
|
|
| MD5 |
b5d304d1d0b9bf108e9bafc9f2158371
|
|
| BLAKE2b-256 |
90b84a9f779a191389248169ba0c98ac2244628a75735ef5df90ba833001408c
|
File details
Details for the file multimodalrouter-0.1.11-py3-none-any.whl.
File metadata
- Download URL: multimodalrouter-0.1.11-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e7e9c1f7c577d938b740fdf0e4a95f56c957269d7d2166992dca649e096a7b
|
|
| MD5 |
603868fca77b557fedc19f0e1e637e06
|
|
| BLAKE2b-256 |
2cc092448b3b080c0ac309db7120a95a1780e65651e818233d4588ff2fa5d037
|