mardist: Calculation of Maritime Distances

Tools for calculating and visualizing maritime distances and routes between geographic points. At its core, it implements a fast Haversine formula implemented in data.table to compute great circle distances across sea regions (i.e. avoiding land mass). The package builds a spatial network graph from port and cluster coordinates and uses a shortest path algorithm to identify optimal maritime routes between origin-destination pairs. For visualization, the package exports maps displaying individual routes, multi-destination networks, or continuous routes through specified waypoints. Utility functions identify the nearest network nodes to arbitrary coordinates and handle the antimeridian discontinuities common in Pacific maritime mapping. The package is particularly suited for analyzing shipping lanes, trade routes, and vessel trajectory data.

Version: 1.1.1
Depends: R (≥ 3.5)
Imports: data.table, dplyr, leaflet, igraph
Published: 2026-10-01
DOI: 10.32614/CRAN.package.mardist
Author: Panayotis Christidis [cre, aut]
Maintainer: Panayotis Christidis <Panayotis.Christidis at ec.europa.eu>
License: EUPL version 1.1 | EUPL version 1.2 [expanded from: EUPL]
NeedsCompilation: no
Materials: NEWS
CRAN checks: mardist results

Documentation:

Reference manual: mardist.html , mardist.pdf

Downloads:

Package source: mardist_1.1.1.tar.gz
Windows binaries: r-devel: mardist_1.0.1.zip, r-release: mardist_1.0.1.zip, r-oldrel: mardist_1.0.1.zip
macOS binaries: r-release (arm64): mardist_1.0.1.tgz, r-oldrel (arm64): mardist_1.0.1.tgz, r-release (x86_64): mardist_1.1.1.tgz, r-oldrel (x86_64): mardist_1.1.1.tgz
Old sources: mardist archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mardist to link to this page.