Skip to main content

PolarRoute

Dev Status Open In Colab Documentation PyPI - Python Version Release Tag Issues License Test Status Coverage Ruff

PolarRoute is a long-distance maritime polar route planning package, able to take into account complex and changing environmental conditions. It allows the construction of optimised routes through three main stages: discrete modelling of the environmental conditions using a non-uniform mesh, the construction of mesh-optimal paths, and physics informed path smoothing. In order to account for different vehicle properties we construct a series of data-driven functions that can be applied to the environmental mesh to determine the speed limitations and fuel requirements for a given vessel and mesh cell. The environmental modelling component of this functionality is provided by the MeshiPhi library.

Installation

PolarRoute is available from PyPI and the latest version can be installed by running:

pip install polar-route

Alternatively you can install PolarRoute by downloading the source code from GitHub:

git clone https://github.com/bas-amop/PolarRoute
cd PolarRoute
pip install -e .

Use of -e is optional, based on whether you want to be able to edit the installed copy of the package.

In order to run the test suite you will also need to include the test dependency group:

pip install --group test

NOTE: Some features of the PolarRoute package require GDAL to be installed. Please consult the documentation for further guidance.

Usage

PolarRoute operates by creating an environmental mesh, adding vessel performance characteristics, and optimizing routes between waypoints. Environmental meshes are created using MeshiPhi, which is installed automatically when installing PolarRoute.

Quick Start (CLI)

# Create environmental mesh
create_mesh examples/environment_config/grf_example.config.json -o mesh.json

# Add vessel performance model
add_vehicle examples/vessel_config/SDA.config.json mesh.json -o vessel_mesh.json

# Optimize routes
optimise_routes examples/route_config/traveltime.config.json vessel_mesh.json examples/waypoints_example.csv -o routes.json

Quick Start (Python API)

from meshiphi.mesh_generation.mesh_builder import MeshBuilder
from polar_route.vessel_performance.vessel_performance_modeller import VesselPerformanceModeller
from polar_route.route_planner.route_planner import RoutePlanner

# Create environmental mesh (using MeshiPhi)
mesh_builder = MeshBuilder(env_config)
mesh_json = mesh_builder.build_environmental_mesh().to_json()

# Add vessel performance to mesh
vpm = VesselPerformanceModeller(mesh_json, vessel_config)
vpm.model_accessibility()
vpm.model_performance()
vessel_mesh_json = vpm.to_json()

# Calculate routes
rp = RoutePlanner(vessel_mesh_json, route_config)
rp.compute_routes(waypoints_path)
routes_json = rp.to_json()

For more details, see the CLI documentation, examples, and the examples/ directory.

Required Data sources

PolarRoute has been built to work with a variety of open-source atmospheric and oceanographic data sources. For testing and demonstration purposes it is also possible to generate artificial Gaussian Random Field data.

A full list of supported data sources and their associated dataloaders is given in the 'Dataloader Overview' section of the MeshiPhi manual

Developers

Samuel Hall, Harrison Abbot, Ayat Fekry, George Coombs, David Wyld, Thomas Zwagerman, Jonathan Smith, Maria Fox, and James Byrne

License

This software is licensed under a MIT license, but request users cite our publication:

Jonathan D. Smith, Samuel Hall, George Coombs, Ayat Fekry, Michael A. S. Thorne, Derek Long, Maria Fox (2025) Path-Planning on a Spherical Surface with Disturbances and Exclusion Zones. Journal of Artificial Intelligence Research 82 (2025), https://doi.org/10.1613/jair.1.16746

For more information please see the attached LICENSE file.

Metadata

Release files for polar-route 1.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polar-route 1.1.11
File Size Uploaded Provenance
polar_route-1.1.11.tar.gz 77.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for polar-route 1.1.11
File Interpreter ABI Platform
polar_route-1.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 173.2 kB

Release files / polar_route-1.1.11.tar.gz

Download URL polar_route-1.1.11.tar.gz
Size 77.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6f99a5f08f5c344f3549a48f11c3eb3eb54b70601241a4a49210aba80a1599b1
BLAKE2b-256 checksum
How to use checksums
82098330ea98a47439bf77d30ffba22285d53a2bde5b33f6a839ba4bbe156e99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Release files / polar_route-1.1.11-py3-none-any.whl

Download URL polar_route-1.1.11-py3-none-any.whl
Size 95.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1efce93b86d55e488a0d04b0d52945b232abaa8f912c268e2d34d7f22ca3aa36
BLAKE2b-256 checksum
How to use checksums
866d759b0840da3d96383fa52bbbc15a96f28e28301f8b156983b799b50c4cba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Security for polar-route 1.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for polar_route-1.1.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page