# Method NearestCoordinateGeodetic

#### NearestCoordinateGeodetic(Geometry, MapPoint, Double, LinearUnit)

Determines the nearest point in the input geometry to the input point, by using a shape preserving geodesic approximation of the input geometry.

##### Declaration

`public static ProximityResult NearestCoordinateGeodetic(this Geometry geometry, MapPoint point, double maxDeviation, LinearUnit deviationUnit = null)`

##### Parameters

Type | Name | Description |
---|---|---|

Geometry | geometry | A geometry object on which to calculate the nearest coordinate to the |

MapPoint | point | The point from which to calculate the nearest coordinate on the |

Double | maxDeviation |
The maximum distance that the geodesic geometry can deviate from the original, in the units of the This value controls the error of calculation. If <= zero, or if NAN, deviation defaults to 0.01 meters. |

LinearUnit | deviationUnit | The unit of measure for the |

##### Returns

Type | Description |
---|---|

ProximityResult | A ProximityResult containing the results of the operation, where the Distance is
returned in meters. Returns |

##### Remarks

All geometry types are supported for the geometry parameter. Supports true curves.

##### See Also

### Applies to

## Platforms and versions

Target | Versions |
---|---|

.NET Standard 2.0 | 100.14 - 200.2 |

.NET 6.0 | 100.14 - 200.2 |

.NET 6.0 Windows | 100.14 - 200.2 |

.NET 6.0 Android | 200.0 - 200.2 |

.NET 6.0 iOS | 200.0 - 200.2 |

.NET Framework | 100.14 - 200.2 |

Android | 100.14 - 100.15 |

iOS | 100.14 - 100.15 |

UWP | 100.14 - 200.2 |