tidier call to GeoDistanceToSegment