A package to find the shortest path in a map with up to 5 intermediate stops, using A*
Project description
map_engine
map_engine is a Python package designed to calculate the shortest route between a start and end location, with support for up to 5 additional stops. It leverages the A* algorithm for efficient pathfinding and is ideal for applications requiring custom routing logic over a road network.
Features
Single-destination routing: Quickly calculate the shortest path between two locations. Multi-stop routing: Add up to 5 additional stops to your route. Flexible inputs: Provide locations as an ordered list of addresses or coordinates. Modular design: Well-structured modules for algorithms, utilities, and visualizations. Integration-ready: Easily integrate with frontend applications, providing optimized routes.
Use following code to start using the pkg
from aStarEngine_package.algorithms.aStar_multi import astar_pathfind_multi_stop
from aStarEngine_package.utils.routing import Routing
# Load the road network
graph_path = "data/LA_road_network.graphml"
router = Routing(graph_path)
# Multi-stop route
locations = ["Venice Beach", "Staples Center", "Griffith Observatory"]
route = router.get_route(locations)
print("Multi-stop path:", route)
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 astarengine_package-1.0.0.tar.gz.
File metadata
- Download URL: astarengine_package-1.0.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6902b49c55ee40415b4b9d3da2f8d28a3a2ed5c61416e7ba822f55a4e08c9f64
|
|
| MD5 |
8db7b1cda22f6fe658b7a5ac77b0498a
|
|
| BLAKE2b-256 |
506cb933df3aaedc0d5a8786a0f8761c338df1b7878cf67bdd24de1024c6e8e3
|
File details
Details for the file aStarEngine_package-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aStarEngine_package-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
496ec6452a052870b1c6f7f57d6b18d4a73011658d7c87fa65c586d2f665bf4f
|
|
| MD5 |
e254d77019cb5b12d429c1dc90e567ca
|
|
| BLAKE2b-256 |
b4a1b0d9e2873ac716b2c05a73a9d5c88c9a4a5a763b0535c397aee177638942
|