main
parent
2141f47b4c
commit
c2bdb024b4
|
@ -3,6 +3,7 @@ from tpmcqr_service import redis_client
|
|||
from tpmcqr_service.models.gtfs import QRDev, Shapes, Paraderos, Trips, Stops, find_shape_position
|
||||
import time
|
||||
import pickle
|
||||
import math
|
||||
|
||||
def calcula_distancias_parada(redis_id, parada_id):
|
||||
salida_parada = dict()
|
||||
|
@ -86,7 +87,7 @@ def estima_llegada(parada_distance, expedicion):
|
|||
elif estimator > 0: #
|
||||
trip_info['trip_estimator'] = 'En parada'
|
||||
else: #
|
||||
salida = ceil(estimator/60)
|
||||
salida = math.ceil(estimator/60)
|
||||
trip_info['trip_estimator'] = 'Hace {} minutos'.format(salida)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue