sowmen choudhury
Posts: 0
Joined: Sat Feb 01, 2014 3:32 pm

Distance calculation within REST

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

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Distance calculation within REST

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.

Return to “Issues”