PCMSSetBordersOpen
Syntax
void PCMSSetBordersOpen(Trip trip, bool open)
Parameters
- Trip trip – Handle to a trip.
- bool open – 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