Getting distance from WebGoogleMaps

Hello good afternoon,
I'm using the WebGoogleMaps component to display a route between 2 points, I would like to know how do I get the distance between those same 2 points

I'm using this code:

WebGoogleMaps1.ShowDirections(edRouteFrom.Text, edRouteTo.Text);

At this moment, there is no such function built-in in TWebGoogleMaps.

Such function is included in TMS FNC Maps (https://www.tmssoftware.com/site/tmsfncmaps.asp) that can be used as well from a TMS WEB Core application:
See: https://download.tmssoftware.com/download/manuals/TMSFNCMapsDevGuide.pdf page 26:

function MeasureDistance(ACoordinate1: TTMSFNCMapsCoordinateRec;
ACoordinate2: TTMSFNCMapsCoordinateRec): Double;