Syntax
void PCMSSetBordersOpen (Trip trip, bool open)
Parameters
Trip trip – Handle to a trip.
bool onOff – Set to True to allow border crossings; False to prevent them.
Description
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.
Return Values
None
Sample Code
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