comparison trafficintelligence/metadata.py @ 1144:6a8fe3ed3bc6

bug correction
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 28 Apr 2020 01:01:14 -0400
parents b3ee75b4978a
children c4c50678c856
comparison
equal deleted inserted replaced
1143:8ac52ebff5f7 1144:6a8fe3ed3bc6
222 def __init__(self, site): 222 def __init__(self, site):
223 self.site = site 223 self.site = site
224 224
225 def getTrajectory(self): 225 def getTrajectory(self):
226 t = Trajectory() 226 t = Trajectory()
227 for p in self.point: 227 for p in self.points:
228 t.addPositionXY(p.x_coordinate, p.y_coordinate) 228 t.addPositionXY(p.x_coordinate, p.y_coordinate)
229 return t 229 return t
230 230
231 class Point(Base): 231 class Point(Base):
232 __tablename__ = 'positions' 232 __tablename__ = 'positions'