nearestCoordinateGeodetic

fun nearestCoordinateGeodetic(geometry: Geometry, point: Point, maxDeviation: Double, deviationUnit: LinearUnit?): ProximityResult?

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

See also