Minimum distance between two geometries

08-07-2017 08:51 AM
New Contributor III

Hello , 

I need to know if there's any method that returns the minimum distance between two geometries like this 

Geometry1.ReturnDistance(Geometry2) ?? Thanks

0 Kudos
1 Reply
Esri Frequent Contributor

You can use 'Esri.ArcGISRuntime.Geometry.GeometryEngine.Distance'

If one of your inputs is a point, you can also use 'Esri.ArcGISRuntime.Geometry.GeometryEngine.NearestCoordinate' to get the nearest location on another geometry, then measure the distance between those.