docs: README final con 220 colonias, Haversine, GPS y stack completo
This commit is contained in:
Binary file not shown.
@@ -56,7 +56,7 @@ def get_eta(route_id: str, db: Session):
|
||||
pos = estado.current_position_id
|
||||
if pos >= 8:
|
||||
return {"mensaje": "El servicio de hoy ha finalizado.", "evento": "ROUTE_COMPLETED",
|
||||
"ventana_inicio": "--", "ventana_fin": "--"}
|
||||
"ventana_inicio": "--", "ventana_fin": "--", "current_position": 8}
|
||||
pos_actual = ruta["positions"][pos - 1]
|
||||
pos_siguiente = ruta["positions"][min(pos, 7)]
|
||||
ts = datetime.datetime.fromisoformat(pos_siguiente["timestamp"].replace("Z", "+00:00"))
|
||||
|
||||
Reference in New Issue
Block a user