Syntax 

int PCMSAirDistToRte(Trip trip, char *location, int leg)

 

Parameters 

Trip trip – Handle to a trip.

int leg – Index of the current leg of the route.

char *location – A geocodable location.


Description

Determines the air distance between a given point and the route, if the current route leg is known.

 

Return Values 

Standard Returns 


Sample Code 

ret = PCMSAirDistToRte(trip, "Plainsboro, NJ", 0);
if (TestErr(ret > 0, "PCMSAirDistToRte"))
     Log_Pcmstest("  Distance from Plainsboro to route: %.1f", ret/10.0f);


Supported Since: PC*MILER Connect 19

Category: Trip Management