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
The query should be scaled per each condition:
terminals
rather to include ONLY terminal portscountry
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 asFalse
. When set toTrue
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