int PCMSCalcDistToRoute(Trip trip, char *location)
Trip trip – Handle to a trip.
char *location – A geocodable location.
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.
ret = PCMSCalcDistToRoute(trip, "Plainsboro, NJ"); printf(" Distance from Plainsboro to route: %.1f", ret/10.0f);
Supported Since: PC*MILER|Connect 19
Category: Trip Managment