def __init__(self, id, description, lat, lon): """ Save the passed-in data. @param id: id of the point of interest @type id: C{string} @param description: description of the point of interest @type description: C{string} @param lat: latitude of point of interest @type lat: C{float} @param lon: longitude of point of interest @type lon: C{float} """ Point.__init__(self, lat, lon, id=id) self.description = description
def __init__(self, id, fromto, cue, comments): """ Save the passed-in data. @param id: id of the turn @type id: C{string} @param fromto: from segment to segment @type fromto: C{string} @param cue: instructions for executing the turn @type cue: C{string} @param comments: additional info about the turn @type comments: C{string} """ Point.__init__(self, id=id) self.fromto = fromto self.cue = cue self.comments = comments
def __init__(self, id, type, description, lat, lon): """ Save the passed-in data. @param id: id of the stop @type id: C{string} @param type: type of stop (convenience store, restaurant, etc...) @type type: C{string} @param description: description of the stop @type description: C{string} @param lat: latitude of the stop @type lat: C{float} @param lon: longitude of the stop @type lon: C{float} """ Point.__init__(self, lat, lon, id=id) self.type = type self.description = description
def __init__(self, id, stop, poi, lat, lon, ele, usgs): """ Save the passed-in data. @param id: id of the C{Waypoint} @type id: C{string} @param stop: space-delimited list of stop id's for this waypoint @type stop: C{string} @param poi: space-delimited list of poi id's for this waypoint @type poi: C{string} @param lat: latitude of the waypoint @type lat: C{float} @param lon: longitude of the waypoint @type lon: C{float} @param ele: observed elevation for this waypoint (meters above sea level) @type ele: C{float} @param usgs: USGS elevation for this waypoint (meters above sea level) @type usgs: C{float} """ Point.__init__(self, lat, lon, ele, usgs, id) self.stop = stop self.poi = poi