Minimum distance between two geometries

633
1
08-07-2017 08:51 AM
ManelKEDDAR
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
dotMorten_esri
Esri Notable 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.