Distance calculation within REST
Posted: Mon Sep 22, 2014 1:45 am
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Sowmen,
Thanks it helps a lot.
In accordance to your screen shot here is code to get "text":
pre
//Store value in textValue variable for further use.
var textValue = data.rows[0].elements[0].distance.text;
/pre
Note: this code require this object to be exists. If you will not have any of these objects - you need to wrap this code with "try-catch" instructions.
Regards.