# Method NearestVertex

#### NearestVertex(Geometry, MapPoint)

Returns a ProximityResult that describes the nearest vertex in the input geometry to the input point.

##### Declaration

`public static ProximityResult NearestVertex(Geometry geometry, MapPoint point)`

##### Parameters

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

Geometry | geometry | The geometry in which the nearest vertex to a specified point is to be found. |

MapPoint | point | The point which to find the nearest vertex to. |

##### Returns

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

ProximityResult | The proximity result. |

##### Remarks

Input geometry of type Envelope is not supported. To find the nearest vertex on an Envelope, convert it to a Polygon first.

If the specified geometry is a polyline or polygon the nearest vertex is the closest ending position of the line segment that comprises geometry; it may not necessarily be the closest point of the line segment. If you want to obtain the closest point in the polyline or polygon use the NearestCoordinate(Geometry, MapPoint) Method instead.

Input geometries with true curves (where HasCurves is `true`

) are
supported, although curve segments do not affect the return value.

##### See Also

### Applies to

## Platforms and versions

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

.NET Standard 2.0 | 100.3 - 100.14 |

.NET 6.0 | 100.13 - 100.14 |

.NET 6.0 Windows | 100.13 - 100.14 |

.NET Framework | 100.0 - 100.14 |

.NET 5 | 100.10 - 100.12 |

.NET Core 3.1 | 100.7 - 100.12 |

Xamarin.Android | 100.0 - 100.14 |

Xamarin.iOS | 100.0 - 100.14 |

UWP | 100.0 - 100.14 |