public MapPoint QueryPointAndDistance( Segmentsegment, SegmentExtensionTypeextensionType, MapPointinPoint, AsRatioOrLengthasRatioOrLength, out doubledistanceAlongCurve, out doubledistanceFromCurve, out LeftOrRightSidewhichSide)

Public Overloads Function QueryPointAndDistance( _ ByValsegmentAs Segment, _ ByValextensionTypeAs SegmentExtensionType, _ ByValinPointAs MapPoint, _ ByValasRatioOrLengthAs AsRatioOrLength, _ ByRefdistanceAlongCurveAs Double, _ ByRefdistanceFromCurveAs Double, _ ByRefwhichSideAs LeftOrRightSide _ ) As MapPoint

#### Parameters

*segment*- The curve on which to find the closest point. The curve may be extended.
*extensionType*- Describes if, how and where to extend segments.
*inPoint*- The input point.
*asRatioOrLength*- Determines whether the distanceAlongCurve is returned as a ratio of the curve length or as length from the start point.
*distanceAlongCurve*- Describes how far along the closest point is along the curve, either as a ratio or length.
*distanceFromCurve*- Describes how far the point is from the curve.
*whichSide*- Describes if the point is on the left or right side of the curve. The direction of the curve determines its left and right sides. If the point is on the curve, then LeftSide is returned.

#### Return Value

MapPoint representing the closest point on the curve.