searoute-py icon indicating copy to clipboard operation
searoute-py copied to clipboard

Enhanced query filter in Ports for restrictive countries

Open genthalili opened this issue 6 months ago • 0 comments

The query should be scaled per each condition:

  1. terminals rather to include ONLY terminal ports
  2. country rather to include ONLY from countries (same country for port as the origin)
  3. 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

genthalili avatar Mar 01 '24 12:03 genthalili