Parameters
- geometry1
- The first geometry.
- geometry2
- The second geometry.
Return Value
The distance between the two input geometries in the same unit as the spatial reference of the input geometries.
If either of the input geometries is empty, then NaN is returned.