Ok.. Version 0.4 released.. fixes the us/ca/pr/vi and dk/se/no 'same country' rule.. so the following are valid itins:
yyz-ord-anc-dfw-lga,jfk-syd-akl-mel-hkg-nrt-hkg-sin-hkg-lhr-dxb-lhr-ist-lhr-yvr-jfk,lga-yyz
bos-dfw-anc-dfw-sju-lax-lhr-dxb-lhr-rom-hel-hkg-nrt-hkg-jfk-bos
osl-arn-lhr-hel-hkg-jfk-hel-cph
Transit rules still aren't checked.. they're a bit trickier
ie. I was able to ticket JFK-SCL-(LAX-JFK)-SYD as a valid transit.
Would HKG-(FRA-LHR)-ACC-LHR-DXB be considered as transit?
How about LHR-(NRT-HKG)-AKL-HKG-KHI? or
JFK-HKG-NRT-MEL-AKL-(HKG-SIN)-LHR?
I plan on using the ()'s to denote the transit segments if and when I get this working.
The LAX-JFK might be a special case as it was domestic flight.
I am guessing the other examples would NOT be allowed.
I don't know of any 'transit only' segments that wouldn't violate a rule.. or were you referring to my JFK-SCL-LAX-JFK-SYD example?