genthalili / searoute-py

A python package to calculate the shortest sea route between two points on Earth.
Apache License 2.0
63 stars 14 forks source link

There's something funky in the coast of South America #6

Closed siggemannen closed 1 year ago

siggemannen commented 1 year ago

Hello again. I've noticed something weird is going on around the south america's south and east routing. The routes become unnecessary long for no particular reason:

latFrom lonFrom latTo lonTo
-26.8895517092518 -48.6897540649155 -54.812105803446045 -68.29988218200157 -37.09185465569397 -73.1540339191571 -50.37664399331081 -75.33395584925265

image image

Also, i can't find the exact coordinates, but i tried to route something short out of Argentina coast ( -30 -50 => -45 -32 ): and it makes a weird turn image

It's usually worse for short voyages for some reason.

genthalili commented 1 year ago

Hi @siggemannen, the issue was caused by uncomplete LineString connections between them on this specific geo area. Fixed this, will be visible on the next published version. Please note that on this specific area, the network is not very sensible to short distances, this can be fixed by adding more LineStrings on the network.

genthalili commented 1 year ago

Hi @siggemannen, can you try on the latest realse https://github.com/genthalili/searoute-py/releases/tag/1.0.9? Let me know if that fixed your issue.