Please give me the solution for this. I have json data here
{
"id": "61e7e10f5c5677",
"travel_map": [
{
"odometer": 0,
"coords": {
"altitude": 150.1,
"heading": -1,
"latitude": 28.5799048,
"speed": -1,
"longitude": 77.3191382
}
},
{
"odometer": 0,
"coords": {
"altitude": 149.8,
"heading": 315.43,
"latitude": 28.5799129,
"speed": 0.01,
"longitude": 77.3191291
}
}
]
}
I need to filter latitude and longitude from these data in array like this
[LatLng(28.5799048, 77.3191382), LatLng(28.5799129, 77.3191291)]