Skip to main content

python package for fast shortest path computation on 2D polygon or grid maps

Project description

https://github.com/jannikmi/extremitypathfinder/actions/workflows/build.yml/badge.svg?branch=master documentation status https://img.shields.io/pypi/wheel/extremitypathfinder.svg pre-commit Total PyPI downloads latest version on PyPI https://img.shields.io/badge/code%20style-black-000000.svg

python package for fast geometric shortest path computation in 2D multi-polygon or grid environments based on visibility graphs.

./docs/_static/title_demo_plot.png

Quick Guide:

Install the package with the optional Numba extra for a significant speedup:

pip install extremitypathfinder[numba]
from extremitypathfinder import PolygonEnvironment

environment = PolygonEnvironment()
# counter clockwise vertex numbering!
boundary_coordinates = [(0.0, 0.0), (10.0, 0.0), (9.0, 5.0), (10.0, 10.0), (0.0, 10.0)]
# clockwise numbering!
list_of_holes = [
    [
        (3.0, 7.0),
        (5.0, 9.0),
        (4.5, 7.0),
        (5.0, 4.0),
    ],
]
environment.store(boundary_coordinates, list_of_holes, validate=False)
start_coordinates = (4.5, 1.0)
goal_coordinates = (4.0, 8.5)
path, length = environment.find_shortest_path(start_coordinates, goal_coordinates)

For more refer to the documentation.

Also see: GitHub, PyPI

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

extremitypathfinder-2.7.0.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

extremitypathfinder-2.7.0-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file extremitypathfinder-2.7.0.tar.gz.

File metadata

  • Download URL: extremitypathfinder-2.7.0.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for extremitypathfinder-2.7.0.tar.gz
Algorithm Hash digest
SHA256 ec5f4e622443eed9d401d2371b4b9f3e8f349a3db4aee7e50ac227a96ec7506a
MD5 50df5a79bc7ba3e4c90a1c3fe06b3147
BLAKE2b-256 0862f449741a21edfe0b304a9854e017b90eee8ad7c0f0254b3e5b1ce851235c

See more details on using hashes here.

File details

Details for the file extremitypathfinder-2.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for extremitypathfinder-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb1a3de2e61f869948f1c3265a1e92b93e84ab98b3edb46d7dd8041d037bfe7d
MD5 7e4d83762a5d32dd391aaf62b7e86fe3
BLAKE2b-256 52f0f2db351050f5a4633fa2ab1d1609da112506c69342d4cab5419eedb696d7

See more details on using hashes here.

Supported by

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