# getAssetsLastReport()

Este método devuelve un array de datos con la última información o reporte enviado por las unidades de rastreo asignadas al usuario autentificado

<span style="color: #bbbbbb; font-size: 1.4em; font-weight: 400;">Ejemplo de solicitud en JS:</span>

```JavaScript
try {
      const assets  = await _gpsApiv2.getAssetsLastReport(); 
 	} catch (error) {
	   console.error(error);
	}
```

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Definición de atributos de la respuesta:</summary>

<div><table class="table" style="height: 900px; width: 621px;" width="811"><tbody><tr style="height: 41px;"><th style="width: 320px; height: 41px;">Atributos</th><th style="width: 301px; height: 41px;">Definición </th></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**UnitId**</td><td style="width: 301px; height: 41px;">Valor por el que es identificada la unidad o vehículo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**UnitPlate**</td><td style="width: 301px; height: 41px;">Se refiere a la placa/patente del vehículo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**GpsIdentif**</td><td style="width: 301px; height: 41px;">Número de serie o IMEI que permite identificar el dispositivo de rastreo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**ReportDate**</td><td style="width: 301px; height: 41px;">Fecha/hora de la posición</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Latitude**</td><td style="width: 301px; height: 41px;">Latitud de la posición del vehículo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Longitude**</td><td style="width: 301px; height: 41px;">Longitud de la posición del vehículo</td></tr><tr style="height: 39px;"><td style="width: 320px; height: 39px;">**Altitude**</td><td style="width: 301px; height: 39px;">Altitud de la posición del vehículo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**GpsSpeed**</td><td style="width: 301px; height: 41px;">Velocidad del vehículo</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Direction**</td><td style="width: 301px; height: 41px;">Orientación del vehículo, Norte, Sur, Este, etc.</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Satellites**</td><td style="width: 301px; height: 41px;">Número de satélites con Fix de la posición</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Ignition**</td><td style="width: 301px; height: 41px;">Status Ignición: 0 = OFF, 1 = ON, 2 = Desconocida</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Odometer**</td><td style="width: 301px; height: 41px;">Odómetro del vehículo en la posición</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Domicilio**</td><td style="width: 301px; height: 41px;">Dirección correspondiente a la latitud y longitud reportada por el equipo.</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Puerto**</td><td style="width: 301px; height: 41px;">Puerto de origen de reporte del equipo GPS</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**IpOrigen**</td><td style="width: 301px; height: 41px;">Ip de origen de reporte del equipo GPS</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**BateriaGps**</td><td style="width: 301px; height: 41px;">Nivel de voltaje o porcentaje del equipo GPS</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**BateriaVeh**</td><td style="width: 301px; height: 41px;">Nivel de voltaje de la fuente conectada al GPS.</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Inputs**</td><td style="width: 301px; height: 41px;">Estados de cada entrada del equipo, 0 = Desactivada, 1 = Activada.</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Sensores**</td><td style="width: 301px; height: 41px;">Json de datos de los sensores</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Grupo**</td><td style="width: 301px; height: 41px;">Nombre del grupo al que pertenece el vehículo.</td></tr><tr style="height: 41px;"><td style="width: 320px; height: 41px;">**Conductor**</td><td style="width: 301px; height: 41px;"><div><section class="">Nombre del conductor asociado al vehículo.

</section></div><div><div></div></div></td></tr></tbody></table>

</div></details>##### Respuesta de ejemplo:

```JSON
[0:{
	 Altitude:0,
	 BateriaGps:'100',
	 BateriaVeh:'12',
	 Conductor:'',
	 Direction:'SE',
	 Domicilio:'Calle 25 sur 304, Puebal, Pue.',
	 GpsIdentif:'867050041689974',
	 GpsSpeed:'0',
	 Grupo:'Grupo Norte',
	 IdEvento:'4',
	 Ignition:'0',
	 Inputs:'0|0|0|0',
	 IpOrigen:'0.0.0.0',
	 Latitude:'19.051256805041916',
	 Longitude:'-98.21835322583925',
	 Odometer:0,
	 Puerto:'-1',
	 ReportDate:'2020-12-16 13:17:32',
	 Satellites:'9',
	 Sensores:'{
 					'82':{'Bateria_gps':{'nombre':'Bateria_gps','valor':'null','fecha':'2020-12-16 13:17:32','p':'100'}},
					'83':{'Bateria_veh':{'nombre':'Bateria_veh','valor':'null','fecha':'2020-12-16 13:17:32','p':'12'}}
				}'
	 UnitId:'Original Android',
	 UnitPLate:'XTX-123',
}]
```