eurostat/searoute

test_input

test_input.csv

route name,olon,olat,dlon,dlat
Marseille-Shanghai,5.3,43.3,121.8,31.2
Marseille-Saint-Petersburg,5.3,43.3,30.2,59.9
Marseille-Auckland,5.3,43.3,174.8,-36.8
Marseille-New-York,5.3,43.3,-74.1,40.7
Marseille-Los Angeles,5.3,43.3,-118.3,33.7
Shanghai-Saint-Petersburg,121.8,31.2,30.2,59.9
Shanghai-Auckland,121.8,31.2,174.8,-36.8
Shanghai-New-York,121.8,31.2,-74.1,40.7
Shanghai-Los Angeles,121.8,31.2,-118.3,33.7
Saint-Petersburg-Auckland,30.2,59.9,174.8,-36.8
Saint-Petersburg-New-York,30.2,59.9,-74.1,40.7
Saint-Petersburg-Los Angeles,30.2,59.9,-118.3,33.7
Auckland-New-York,174.8,-36.8,-74.1,40.7
Auckland-Los Angeles,174.8,-36.8,-118.3,33.7
New-York-Los Angeles,-74.1,40.7,-118.3,33.7

searoute.sh

#!/usr/bin/env bash
java -jar searoute.jar -i "test_input.csv" -res 5 -panama 0

Output is out.geojson

Combining out.geojson with ne_10m_land we get the following:

SeaRoute geojson output with test input

Route from Port of Melbourne to Port of Los Angeles

Port Latitude Longitude
Port of Melbourne -37.85 144.90
Port of Kaohsiung 22.61 120.28
Yantian International Container Terminals 22.57 114.27
Port of Singapore 1.26 103.84
Mundra Port 22.75 69.70
Port of Jebel Ali 25.01 55.06
Port of Piraeus 37.94 23.64
Marseille-Fos Port 22.75 69.70
Port Newark–Elizabeth Marine Terminal 40.68 -74.15
Port of Santos -23.98 -46.29
Puerto de San Antonio -33.59 -71.62
Port of Los Angeles 33.73 -118.26
routename,olon,olat,dlon,dlat
Melbourne,144.90,-37.85,120.28,22.61
Kaohsiung,120.28,22.61,114.27,22.57
Yantian,114.27,22.57,103.84,1.26
Singapore,103.84,1.26,69.70,22.75
Mundra,69.70,22.75,55.06,25.01
JA,55.06,25.01,23.64,37.94
Piraeus,23.64,37.94,69.70,22.75
Marseille,69.70,22.75,-74.15,40.68
Newark,-74.15,40.68,-46.29,-23.98
Santos,-46.29,-23.98,-71.62,-33.59
Antonio,-71.62,-33.59,-118.26,33.73

Route from Port of Melbourne to Port of Los Angeles