Syntax 

void PCMSSetRouteLevel (Trip trip, bool useStreets)

 

Parameters 

Trip trip – Handle to a trip.

bool useStreets – True sets routing to street level and False sets it to highway only. The default is False.


Description

Sets routing to either street level or highway only.  This API provides the same effect as the UseStreets setting in the PCMSERVE.INI, except it can be changed in between trips. (A license for PC*MILER|Streets is required for street-level routing.)


Return Values 

None


Sample Code

Trip trip = PCMSNewTrip(server);
PCMSSetRouteLevel(trip, TRUE); // turn streets on
PCMSAddStop(trip,"Philadelphia, PA");
PCMSAddStop(trip,"Hamilton, NJ");
PCMSAddStop(trip,"Manhattan,NY");
PCMSSetCalcType(trip, CALC_AVOIDTOLL);
PCMSSetCalcType(trip, CALC_NATIONAL);
PCMSCalculate(trip);


Supported Since: PC*MILER|Connect 24

Category:Trip Options