Hi Bruce,
I know you're busy person, I just don't know how you do it with so many products and supporting other vendors.
I was able to get to get the address information working but no matter what I do I'm not able to get the element | Distance information
When I try to get the 1st element using the information is correct, but for the 2nd it gets the value" : 26580 instead of text" : "17.0 mi",
Also I can't seem to be able to reach the 2nd element either.
MatrixElements GROUP,PRE(ED)
Distance CSTRING(145),DIM(50),NAME('text')
END
json.start()
json.Loadstring( str )
x = json.Records()
ED:Distance[1] = json.GetValueByName('distance',1) ! first address
ED:Distance[2] = json.GetValueByName('distance',2) ! first address
The Json Response file:
{
"destination_addresses" : [
"6010 Cattleridge Drive, Sarasota, FL 34232, USA",
"3937 Westminster Drive, Sarasota, FL 34241, USA"
],
"origin_addresses" : [
"6615 Anchor Loop, Bradenton, FL 34212, USA",
"121 New Briton Court, Bradenton, FL 34212, USA"
],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "16.5 mi",
"value" : 26580
},
"duration" : {
"text" : "20 mins",
"value" : 1202
},
"status" : "OK"
},
{
"distance" : {
"text" : "17.0 mi",
"value" : 27391
},
"duration" : {
"text" : "21 mins",
"value" : 1254
},
"status" : "OK"
}
]
},
{
"elements" : [
{
"distance" : {
"text" : "16.8 mi",
"value" : 27110
},
"duration" : {
"text" : "21 mins",
"value" : 1243
},
"status" : "OK"
},
{
"distance" : {
"text" : "17.3 mi",
"value" : 27922
},
"duration" : {
"text" : "22 mins",
"value" : 1295
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}