main
parent
c8d4203551
commit
9a3852a57c
|
@ -178,7 +178,7 @@ def obtiene_shape_paradas(id_shape, id_trip):
|
||||||
shape = []
|
shape = []
|
||||||
paradas = []
|
paradas = []
|
||||||
|
|
||||||
for item in Shapes.query.filter(Shapes.id_shape==id_shape).order_by(Shape.shape_pt_sequence.asc()).all():
|
for item in Shapes.query.filter(Shapes.id_shape==id_shape).order_by(Shapes.shape_pt_sequence.asc()).all():
|
||||||
shape.append({'lat': item.shape_pt_lat, 'lon': item.shape_pt_lon})
|
shape.append({'lat': item.shape_pt_lat, 'lon': item.shape_pt_lon})
|
||||||
|
|
||||||
for item in Paraderos.query.join(Stops).filter(Stops.id_trip==id_trip).distinct(Paraderos.id_paradero).order_by(Stops.stop_sequence.asc()).all():
|
for item in Paraderos.query.join(Stops).filter(Stops.id_trip==id_trip).distinct(Paraderos.id_paradero).order_by(Stops.stop_sequence.asc()).all():
|
||||||
|
|
Loading…
Reference in New Issue