Syntax 

int PCMSCalcDistToRoute(Trip trip, char *location)


Parameters  

Trip trip – Handle to a trip.

char *location – A geocodable location.

 

Description

Determines the air distance between a given location and the nearest point on the route. By PC*MILER convention, distances are returned in tenths of a mile or kilometer.


Return Values 

Standard returns


Sample Code 

ret = PCMSCalcDistToRoute(trip, "Plainsboro, NJ");
printf("  Distance from Plainsboro to route: %.1f", ret/10.0f);


Supported Since: PC*MILER|Connect 19

Category: Trip Managment