1
I have an Application that sends the strings via POST and recovers via JSON, but I am not able to separate the coordinates that arrive in an array.
Follow an example
$datas = file_get_contents('php://input');
$encoded = json_decode($datas);
$id_usuario_rastreio = $encoded->{'id_usuario'};
$id_grupo = $encoded->{'id_grupo'};
$id_token = $encoded->{'token'};
I need to recover now the locationList and separate to insert into the seat.
{
"id_grupo": "20",
"id_usuario": "21",
"token": "0123456",
"locationList":[{"date":"Feb 27, 2018 12:32:08 PM","latitude_rastreio":"-10.5267176","longitude_rastreio":"-10.5702931"},{"date":"Feb 27, 2018 12:33:08 PM","latitude_rastreio":"-10.5267176","longitude_rastreio":"-10.5702931"}]
}