nearest Coordinate Geodetic
Determines the nearest point in the input geometry to the input point, by using a shape preserving geodetic approximation of the input geometry. Supports true curves.
Return
A ProximityResult containing the results of the operation, where the ProximityResult.distance is returned in meters. Returns null if the input geometry is empty. ProximityResult.distance is zero if the point lies inside an input polygon, polyline, or envelope.
Since
200.1.0
Parameters
A geometry object on which to calculate the nearest coordinate to the point parameter.
The point from which to calculate the nearest coordinate on the geometry parameter.
The maximum distance that the geodetic geometry can deviate from the original (in the units of the deviationUnit parameter). If the value is <= zero, or NAN, the error calculation deviation defaults to 0.01 meters.
The unit of measure for the maxDeviation parameter. If null, the units of maxDeviation are assumed to be meters.
See also
(Geometry, Point)
Throws
Indicates that the spatial references of the geometry and point parameters are not equal, or are null.
Indicates that a true curve geometry was used as input when it is not supported by this operator.