Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Fecha 28/06/2019
IMOVIT API
Pag. 1/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
1. Introducción
La documentación del API de IMOVIT explica su funcionamiento y detalla cada uno de los
métodos desarrollados.
2.1 Parámetros.
Pag. 2/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
{
"codeResponse": 200,
200: Satisfactoria
"token": "token_usuario"
}
{
"codeResponse": 401,
401: Error, revisar
datos de usuario "message": "Las credenciales no coinciden con nuestros
registros."
}
{
"codeResponse": 200,
200: Satisfactoria
"message": "Sesión finalizada con éxito."
}
Pag. 3/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
{
"codeResponse": 400,
400: Error, revisar
cabeceras enviadas "message": "Para finalizar sesión revisa los parámetros
enviados."
}
{
"codeResponse": 200,
200: Satisfactoria
"message": "API versión: 1.0"
}
Nota: en caso de obtener otro código de respuesta, revisar los errores genéricos, que se
encuentra al final del documento.
Pag. 4/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
5.1 Parámetros.
{
"code": 200,
"data": {
"IDEquipo": 907510242,
"FechaUTC": "2019-05-29 22:36:45",
"latitud": "19.43856",
200: Satisfactoria "longitud": "-99.20093",
"velocidad": "5",
"distancia": "26470166",
"horimetro": "0000077941",
"voltajeBateria": "4.1",
"cursoSobreTerreno": "233.13",
"satelites": "5",
Pag. 5/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"voltajePrincipal": "14.30",
"fixGPS": null,
"radio": null,
"ignicion": "1"
}
}
Nota: en caso de obtener otro código de respuesta, revisar los errores genéricos, que se
encuentra al final del documento.
Pag. 6/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
Petición /positions/getHistoricalPositionDates
6.1 Parámetros.
"code": 200,
"data": {
"positions": [
{
200, Satisfactoria
"IDEquipo": 907510242,
"FechaUTC": "2019-05-27 05:05:40",
"latitud": "19.44225",
"longitud": "-99.20005",
Pag. 7/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"velocidad": "0",
"distancia": "25744176",
"horimetro": "0000076810",
"voltajeBateria": "4.1",
"cursoSobreTerreno": "000.00",
"satelites": "0",
"voltajePrincipal": "12.39",
"fixGPS": "0",
"radio": null,
"ignicion": "0"
},
{
"IDEquipo": 907510242,
"FechaUTC": "2019-05-27 06:05:40",
"latitud": "19.44225",
"longitud": "-99.20005",
"velocidad": "0",
"distancia": "25744176",
"horimetro": "0000076810",
………..
}, …….
]
"events": [
{
"IDEquipo": 907510242,
"FechaUTC": "2019-05-29 13:34:08",
"latitud": "19.4645",
"longitud": "-99.14536",
"velocidad": "52",
"distancia": "26455672",
Pag. 8/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"horimetro": "0000077845",
"voltajeBateria": "4.1",
"cursoSobreTerreno": "253.43",
"satelites": "11",
"voltajePrincipal": "14.27",
"fixGPS": "1",
"radio": null,
"ignicion": "1"
},
{
"IDEquipo": 907510242,
"FechaUTC": "2019-05-29 13:34:15",
"latitud": "19.4642",
"longitud": "-99.14638",
"velocidad": "65",
"distancia": "26455784",
"horimetro": "0000077845",
…….
}, …….
]
}
Nota: en caso de obtener otro código de respuesta, revisar los errores genéricos, que se
encuentra al final del documento.
Pag. 9/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
Petición /positions/getHistoricalPositionHours
7.1 Parámetros.
"code": 200,
"data": {
"positions": [
{
200, Satisfactoria
"IDEquipo": 907510242,
"FechaUTC": "2019-05-29 10:04:16",
"latitud": "19.58494",
"longitud": "-99.00656",
Pag. 10/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"velocidad": "0",
"distancia": "26421753",
"horimetro": "0000077767",
"voltajeBateria": "4.1",
"cursoSobreTerreno": "000.00",
"satelites": "12",
"voltajePrincipal": "12.89",
"fixGPS": "1",
"radio": null,
"ignicion": "0"
},
{
"IDEquipo": 907510242,
"FechaUTC": "2019-05-29 11:04:16",
"latitud": "19.58493",
"longitud": "-99.0065",
"velocidad": "0",
"distancia": "26421753",
"horimetro": "0000077767",
………..
}, …….
]
"events": [
{
"IDEquipo": 907510242,
"FechaUTC": "2019-05-29 13:34:08",
"latitud": "19.4645",
"longitud": "-99.14536",
"velocidad": "52",
Pag. 11/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"distancia": "26455672",
"horimetro": "0000077845",
"voltajeBateria": "4.1",
"cursoSobreTerreno": "253.43",
"satelites": "11",
"voltajePrincipal": "14.27",
"fixGPS": "1",
"radio": null,
"ignicion": "1"
},
{
"IDEquipo": 907510242,
"FechaUTC": "2019-05-29 13:34:15",
"latitud": "19.4642",
"longitud": "-99.14638",
"velocidad": "65",
"distancia": "26455784",
"horimetro": "0000077845",
…….
}, …….
]
}
Nota: en caso de obtener otro código de respuesta, revisar los errores genéricos, que se
encuentra al final del documento.
Pag. 12/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
Petición /positions/getClosestDevice
Parámetros.
"code": 200,
"data": [{
Pag. 13/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"longitud": "-98.206906",
"velocidad": null,
"distancia": null,
"horimetro": null,
"voltajeBateria": null,
"cursoSobreTerreno": null,
"satelites": null,
"voltajePrincipal": null,
"fixGPS": null,
"radio": null,
"ignicion": null
}]
"code": 200,
"data": [{
"IDEquipo": 4802921,
"Placa": null,
"FechaUTC": "2019-05-31 15:23:37",
"latitud": "19.06964",
"longitud": "-98.18849",
200, Satisfactoria "velocidad": null,
(disp_in_vehicle = no
especificado) "distancia": "0",
"horimetro": null,
"voltajeBateria": null,
"cursoSobreTerreno": null,
"satelites": null,
"voltajePrincipal": null,
"fixGPS": null,
"radio": null,
Pag. 14/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"ignicion": null
}]
Nota: en caso de obtener otro código de respuesta, revisar los errores genéricos, que se
encuentra al final del documento.
Pag. 15/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
Petición /cars/getVehiclesEvents
9.1 Parámetros.
{
"codeResponse": 200,
"data": [
{
"Vehiculo": "310E",
"ID_Dispositivo": 7347501,
200, Satisfactoria
"Marca": null,
"Modelo": null,
"Color": "#F9F81F",
"Año": "2000",
"Chasis": "",
"Renave": "",
Pag. 16/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"Comentario": "NULL",
"Etiqueta": null,
"Eventos": [
[
{
"Mensaje": "Ignición off",
"Latitud": "19.48274",
"Longitud": "-98.83487",
"Fecha": "2019-06-28 17:05:40",
"Dirección": ""
},
{
"Mensaje": "Ignición on",
"Latitud": "19.48623",
"Longitud": "-98.84676",
"Fecha": "2019-06-28 16:44:07",
"Dirección": ""
},
{
"Mensaje": "Ignición off",
"Latitud": "19.48623",
"Longitud": "-98.84677",
"Fecha": "2019-06-28 16:31:56",
"Dirección": ""
},
{
"Mensaje": "Ignición on",
"Latitud": "19.48753",
"Longitud": "-98.83874",
Pag. 17/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
Pag. 18/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"Dirección": ""
},
{
"Mensaje": "Ignición off",
"Latitud": "19.48753",
"Longitud": "-98.83877",
"Fecha": "2019-06-28 15:07:13",
"Dirección": ""
},
{
"Mensaje": "Ignición on",
"Latitud": "19.48753",
"Longitud": "-98.83877",
"Fecha": "2019-06-28 15:02:02",
"Dirección": ""
}
],
[
{
"Latitud": "19.4863",
"Longitud": "-98.84691",
"Fecha": "2019-06-27 16:16:12",
"Dirección": ""
},
{
"Latitud": "19.48628",
"Longitud": "-98.84687",
"Fecha": "2019-06-27 16:14:29",
"Dirección": ""
Pag. 19/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
},
{
"Latitud": "19.48628",
"Longitud": "-98.84687",
"Fecha": "2019-06-27 16:12:58",
"Dirección": ""
},
{
"Latitud": "19.4863",
"Longitud": "-98.84696",
"Fecha": "2019-06-27 15:44:20",
"Dirección": ""
},
{
"Latitud": "19.48629",
"Longitud": "-98.84696",
"Fecha": "2019-06-27 15:34:10",
"Dirección": ""
},
{
"Latitud": "19.48654",
"Longitud": "-98.84789",
"Fecha": "2019-06-27 14:57:24",
"Dirección": ""
},
{
"Latitud": "19.48654",
"Longitud": "-98.84789",
"Fecha": "2019-06-27 14:57:10",
Pag. 20/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
"Dirección": ""
},
{
"Latitud": "19.48499",
"Longitud": "-98.84209",
"Fecha": "2019-06-27 14:38:48",
"Dirección": ""
},
{
"Latitud": "19.48499",
"Longitud": "-98.84209",
"Fecha": "2019-06-27 14:36:29",
"Dirección": ""
},
{
"Latitud": "19.48478",
"Longitud": "-98.84117",
"Fecha": "2019-06-27 14:27:58",
"Dirección": ""
}
]
]
}
Pag. 21/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
{
"codeResponse": 401,
401: Error, revisar las
"message": "No autorizado, favor de revisar
cabeceras de la petición
cabeceras de solicitud"
}
{
404: Error por alguna falla "codeResponse": 404,
ajena al sistema (ejemplo:
pérdida de conexión) "message": "Algo ha ido mal, intenta más tarde."
}
Pag. 22/2
STI SOLUTIONS S.A DE C.V. Fecha 28/06/2019
Pag. 23/2