This document is archived and information here might be outdated. Recommended version. |
Creates the route flag using its geographic location and required direction.
[Visual Basic .NET] Public Function CreateFlagDirection ( _ ByVal pPoint As SMRouterPoint, _ ByVal dOrientation As Double, _ ByVal dTolerance As Double, _ ByRef pdAdjustedOrientation As Double _ ) As SMFlag
[C#] public SMFlag CreateFlagDirection ( SMRouterPoint pPoint, double dOrientation, double dTolerance, ref double pdAdjustedOrientation );
[C++]
HRESULT CreateFlagDirection(
ISMRouterPoint* pPoint,
double dOrientation,
double dTolerance,
System.Double* pdAdjustedOrientation
);
[C++] Parameters pPoint [in]
pPoint is a parameter of type ISMRouterPoint* dOrientation [in]
dOrientation is a parameter of type double dTolerance [in]
dTolerance is a parameter of type double pdAdjustedOrientation [out]
pdAdjustedOrientation is a parameter of type double*
Creates the route flag using geographic location and required direction.
This method may be used if snapped position of route flag is needed.
The dOrientation argument is associated with the input geographic location (pPoint argument). dOrientation indicates the direction of moving at the time the geographic coordinates were determined. The valid values are within the range 0 - 360 degrees (0 inclusive) clockwise starting from north at 0 degrees (i.e. 0� - north, 90� - east, 180� - south, and 270� - west).
The street that the Flag being created is snapped to, will be the closest among those streets that have an orientation within � dTolerance degrees of the dOrientation argument.
The pdAdjustedOrientation value represents the orientation of the street segment in the direction of travel at the snapped geographic point. Valid values are within the range 0 - 360 degrees as described above.