docs: README final con 220 colonias, Haversine, GPS y stack completo

This commit is contained in:
2026-05-23 05:36:21 -06:00
parent 6af2c85f0d
commit 0b03370c85
3 changed files with 20 additions and 9 deletions

View File

@@ -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"))