Hi,
I have tried to receive the distance and duration from outside the GetDirection mehthod by calling the following code after Get Direction was executed.
Directions.GetDirections(ActiveMarker.Coordinate.ToRec, NewMarker.Coordinate.ToRec);
for I := 0 to Directions.DirectionsRequests.Count-1 do
for II := 0 to Directions.DirectionsRequests.Items[I].Items.Count-1 do
showmessage('I='+I.ToString+'/II='+II.ToString+' - '+Directions.DirectionsRequests.Items[i].Items[II].Distance.ToString);
I thought I would get, every distance for every single Route, but the Length of the Routes can never be right is there some Sort of Indexfailure or something.
I am using Mapbox for every Service.
Best regards