Minimum distance between two geometries

252
1
08-07-2017 08:51 AM
Highlighted
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

Reply
0 Kudos
1 Reply
Highlighted
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.