Tyn Guardian
05/12/2022, 4:48 PMvar gapiUrl = '<https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=>' + _fromLat_ + ',' + _fromLong_ + '&destinations=' + _toLat_ + ',' + _toLong_ + '&mode=fastest;car;traffic:enabled&key=zzzzzz--0 &language=en-EN&sensor=false';
var restResponse = <http://_https_.post|_https_.post>({
url: gapiUrl
});
var response = JSON.parse(restResponse.body);
if (restResponse.code == '200') {
return response.rows[0].elements[0].distance.text;
}
ahmed saeed moawoad elmasry
05/12/2022, 6:28 PMTyn Guardian
05/12/2022, 11:26 PM