Skip to main content

PCMSCalcDistToRoute

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 Management

Last updated July 8, 2025.