Syntax 

void PCMSSetMiles (Trip trip)


Parameters 

Trip trip – Handle to a trip.


Description

Sets the returned distance values to miles.


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);
  
  /* Calculate in miles */
          PCMSSetMiles(shortTrip);
          distance = PCMSCalcTrip(shortTrip, "Princeton, NJ", "Chicago, IL");
          printf ("Practical route in miles: %f\n",
              distance);


Supported Since: PC*MILER|Connect 12

Category: Trip Options