I want to know the distance between two drawn geometries. I look for it and saw in OpenLayers 2 the distanceTo methods but I actually use OpenLayers 4. I know there is haversine method but it's between two points.
Did you know any way to calculate the distance in the last version?