eurostat / searoute

Compute shortest maritime routes between ports
European Union Public License 1.2
157 stars 33 forks source link

Errors when calculating some routes #29

Closed dannyfraser closed 4 years ago

dannyfraser commented 4 years ago

I'm trying to calculate the distance between a set of routes (~80,000) and some are raising errors. I've tried taking samples of 100 routes at a time and running them through the .jar file to narrow down which were the exceptions. Here's one example from Indonesia to Egypt - I can provide more if necessary but it's a bit of detective work to find them.

I ran this with both Panama and Suez canals unavailable.

route name olat olon dlat dlon
Bontang_Safaga 0.101287 117.470056 29.635942 32.380686

Can you help to identify the reason that this route is failing?

dannyfraser commented 4 years ago

A little more detective work has shown that connections to Ain Sokhna and Colon also raise errors. My hunch is that it's because these ports are in proximity to the end points of the Suez and Panama canals respectively.

Coordinates: route name olat olon dlat dlon
Arzew_Colon 35.810036 -0.259368 9.34731 -79.904864
Arzew_Safaga 35.810036 -0.259368 29.635942 32.380686
jgaffuri commented 4 years ago

I fixed the mistake... it should work for these cases now.