Syntax 

void PCMSSetKilometers (Trip trip)


Parameters 

Trip trip – Handle to a trip.


Description

Sets the returned distance values to kilometers.


Return Values 

None


Sample Code

  /* Create a new trip */
    shortTrip = PCMSNewTrip(server);
  
  /* Run a route calculation */
    distance = PCMSCalcTrip(shortTrip, "Princeton, NJ", "Chicago, IL");
    printf ("Practical route in miles: %f\n", distance);
    
  /* Calculate in kilometers */
    PCMSSetKilometers(shortTrip);
    distance = PCMSCalcTrip(shortTrip, "Princeton, NJ", "Chicago, IL");
    printf ("Practical route in kilometers: %f\n",
      distance);


Supported Since: PC*MILER|Connect 12

Category: Trip Options