Thank you sir. But I am still not getting it.
I have a label in my app call distance,
I need to pass or (mapped) the result of a calculated var from the server code
var dis = getDistance(lat, latitude, lng, longitude);
to label distance in my app.
Please I need a guide, thanks.