searoute-py
searoute-py copied to clipboard
Enhanced query filter in Ports for restrictive countries
The query should be scaled per each condition:
-
terminals
rather to include ONLY terminal ports -
country
rather to include ONLY from countries (same country for port as the origin) -
to_country
rather to include ONLY to countries (ports that delivers only to destination country)
Add a parameter : strict
, default as False
. When set to True
force ALL queries to match, otherwise will apply queries as per the list above, one after one, if condition N returns nothing, then go return result of condition N-1, unless N=1