Page 2 of 2

Distance calculation within REST

Posted: Mon Sep 22, 2014 1:45 am
by sowmen choudhury

:( My bad..Here you go with the screen for console.

Image


Distance calculation within REST

Posted: Mon Sep 22, 2014 10:04 pm
by Yurii Orishchuk

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.