def to_gpx_trackpoint(self): waypoint = GPXTrackPoint(self.gps_latitude(), self.gps_longitude()) waypoint.name = self.title() waypoint.description = self.description() waypoint.comment = self.description() waypoint.symbol = "wpt_46" if self.elevation() is not None: waypoint.elevation = self.elevation() return waypoint
def to_gpx_trackpoint(self): gps = self.geocoder.convert(self.address) trackpoint = GPXTrackPoint(gps['lat'], gps['lng']) trackpoint.name = self.name return trackpoint
def csv_line_to_gpx(csv_line): attrs = csv_line.split(',') lat, lng = stateplane_to_latlon(float(attrs[1]), float(attrs[2])) trackpoint = GPXTrackPoint(lat, lng) trackpoint.name = 'Tree ' + str(floor(float(attrs[4]))) + '"' return trackpoint