Package: mardist
Type: Package
Title: Calculation of Maritime Distances
Version: 1.1.1
Encoding: UTF-8
Date: 2026-09-29
Description: 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.
License: EUPL
Depends: R (>= 3.5)
Imports: data.table, dplyr, leaflet, igraph
LazyData: true
Config/roxygen2/version: 8.1.0
Authors@R: person(given = "Panayotis",
                    family = "Christidis",
                    role = c("cre", "aut"),
                    email = "Panayotis.Christidis@ec.europa.eu")
NeedsCompilation: no
Packaged: 2026-10-01 10:33:44 UTC; chrisps@delta.europa.eu
Author: Panayotis Christidis [cre, aut]
Maintainer: Panayotis Christidis <Panayotis.Christidis@ec.europa.eu>
Repository: CRAN
Date/Publication: 2026-10-01 15:40:27 UTC
