# Lista de viajes calculados  - getOnDrivingInfo

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/getOnDrivingInfo

Obtiene el listado de todos los viajes calculados en OnDriving para un activo perteneciente a un usuario o cliente en un rango de fechas.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="height: 349px;"><tbody><tr style="height: 41px;"><th style="width: 188px; height: 41px;">Parámetros</th><th style="width: 320px; height: 41px;">Descripción</th><th style="width: 301px; height: 41px;">Ejemplo</th></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 47px;"><td style="width: 188px; height: 47px;">idvehiculo

</td><td style="width: 320px; height: 47px;">Identificador único del vehículo dentro de la plataforma.</td><td style="width: 301px; height: 47px;"><span style="color: #3366ff;">53008</span></td></tr><tr style="height: 47px;"><td style="width: 188px; height: 47px;">equipo

</td><td style="width: 320px; height: 47px;">IMEI / Identificador del equipo GPS en plataforma.</td><td style="width: 301px; height: 47px;"><span style="color: #3366ff;">354148072188807</span></td></tr><tr style="height: 47px;"><td style="width: 188px; height: 47px;">fecha\_ini

</td><td style="width: 320px; height: 47px;">Fecha de inicio del rango sobre el cual se va a realizar la búsqueda de información del viaje</td><td style="width: 301px; height: 47px;"><span style="color: #3366ff;"> 2021-05-05</span></td></tr><tr style="height: 69px;"><td style="width: 188px; height: 69px;">fecha\_fin

</td><td style="width: 320px; height: 69px;">Fecha fin del rango sobre el cual se va a realizar la búsqueda de información del viaje</td><td style="width: 301px; height: 69px;"><span style="color: #3366ff;"> 2021-05-05</span></td></tr></tbody></table>

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

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/getOnDrivingInfo' \
--data-urlencode 'apikey=f77c31ce81907cc5f0ecffeda60fb4f6' \
--data-urlencode 'token=SJx5eXC7PtRJwHcSY8O8Da3WZTOlUZCHrOsfmvYFMU/MckoIQjPytg==' \
--data-urlencode 'idvehiculo=53008' \
--data-urlencode 'equipo=354148072188807' \
--data-urlencode 'fecha_ini=2021-05-05' \
--data-urlencode 'fecha_fin=2021-05-05'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": [
        {
            "inicio_viaje": {
                "fecha_hora": "2021-05-05 12:21:53",
                "domicilio": "Boulevard Esteban de Antu&ntilde;ano 112, Luz Obrera, 72110 Puebla, Pue., M&eacute;xico"
            },
            "final_viaje": {
                "fecha_hora": "2021-05-05 14:51:39",
                "domicilio": "Boulevard Esteban de Antu&ntilde;ano, Reforma, 72160 Puebla, Puebla"
            },
            "duracion_viaje": "8986",
            "distancia_viaje": "30980",
            "calificacion_viaje": "0.7",
            "categorias": [
                {
                    "categoria": "Velocidades",
                    "calificacion": 0.7,
                    "calificacion_categoria": 6.28,
                    "duracion_evento": "3211",
                    "distancia": "30980",
                    "configuracion": {
                        "velocidad": "70",
                        "activo": "1",
                        "importancia": "1.1110888888888888"
                    },
                    "eventos": []
                }
            ]
        }
    ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1" open="open"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 611px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">inicio\_viaje

</td><td style="width: 392px; height: 41px;">Contiene la información de inicio del viaje (fecha, hora y domicilio)

</td><td style="width: 243px; height: 41px;">Objeto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">final\_viaje

</td><td style="width: 392px; height: 47px;">Contiene la información de fin de viaje (fecha, hora y domicilio)

</td><td style="width: 243px; height: 47px;">Objeto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">duracion\_viaje

</td><td style="width: 392px; height: 47px;">Tiempo total de viaje (en segundos)

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">distancia\_viaje

</td><td style="width: 392px; height: 35px;">Distancia total recorrida durante el viaje (en metros)

</td><td style="height: 35px; width: 243px;">Entero

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">calificacion\_viaje

</td><td style="width: 392px; height: 35px;">Calificación final del viaje

</td><td style="height: 35px; width: 243px;">Flotante

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">categorias

</td><td style="width: 392px; height: 35px;">Información de las categorías evaluadas durante el viaje

</td><td style="height: 35px; width: 243px;">Arreglo de Objetos

</td></tr></tbody></table>

</div></details>