|
Methods defined here:
- __init__(self)
- getArrivalTimeAtLocation(self, stoploc, tol=10.0, starttime=None)
- Given a stop location (lat,lon), a tolerance in meters, and a starting
time, does the following:
Finds the first time interval (t1,t2) within which the line segments
of this track are all within tol meters of stoploc, and t1>starttime.
Returns the time t such that t1<=t<=t2 at which this track was closest
to stoploc.
If this track was never within tol meters of the location, then
returns None.
- getBoundingBox(self)
- Returns (lonmin,lonmax,latmin,latmax) the lat/lon bounds
of this route's traversal.
- getLocationAtTime(self, time)
- Given a time, returns a (lat,lon) location of the (estimated)
location of the bus at that time. If the time is before or after
the bounding time of the route, then None is returned.
- getRouteTimeInterval(self)
- Returns the (begin,end) times for which this BusTrack exists.
- getTimesAtLocation(self, latlon, tol=10.0)
- Given a (lat,lon), returns the (begin,end) interval of the
(estimated) times that the bus was within tol meters of that
location.
- set_attributes(self, dictlike)
- Sets attributes as, for each key in dictlike,
self.key = dictlike[key]
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|