Open MasterMindSudo opened 5 months ago
The reason it's returning the result you see, it's due to the network how it's configured:
As you can see there are not many points and edges around this area, and some edges are relatively close to the shore.
The append_orig_dest
allows to add two extra edges, at the begining from your origin (lon, lat) and at the end to you destination (lon,lat).
When including the original point, it tries to connect to a shortest next point , but it is too close to the shore and not connecting to a better waypoint Should be connecting to the upper waypoint It finally gave in after the vessel passed the next way point this is how i call the searoute package route = sr.searoute(origin, destination, units=units,restrictions=['suez','panama','northwest'], append_orig_dest = True )
any where i can tweak the setting to make sure the route does not take the waypoint that is too close to the shore like in the first few images? thanks