Hi guys,
i have a Json file with many information but some of this is inside an array.
My problem is that i can’t take a part of the array.
Example:
My little piece of Json file:
`{
“type”:“Feature”,
“properties”:{
“id”:889,
“nome”: “name”,
“linee”:“5”
},
“geometry”:{
“type”:“Point”,
“coordinates”:[
9.156675327340007,
45.478140184674032
]
}
}
i need coordinates divided into 2 part: latitude=45.478140184674032 and longitude=.9.156675327340007.
i managed to get all the coordinates like a single string but i can’t devided the lat from the long.
this is my block
I think the problem is the method you are getting data.
First parse whole response.Then parse data of geometry attribute.
Then parse data of coordinate attribute and split it at , and set label text to that.