void PCMSSetBordersOpen (Trip trip, bool open)
Trip trip – Handle to a trip.
bool onOff – Set to True to allow border crossings; False to prevent them.
Determines whether routes with two stops in the same country are allowed to cross international borders, even if the best route goes through another country.
NewSection("PCMSSetBordersOpen"); PCMSClearStops(trip); PCMSAddStop(trip, "Buffalo, NY"); PCMSAddStop(trip, "Detroit, MI"); PCMSSetBordersOpen(trip, true); int bordersOpenDist = PCMSCalculate(trip); TestErr(bordersOpenDist > 0, "PCMSCalculate(trip)"); Log_Pcmstest(" %.1f miles (borders open)", bordersOpenDist/10.0f);
Supported Since: PC*MILER|Connect 12
Category: Trip Options