code: def add_to_linestring(position_data, kml_linestring):
      '''add a point to the kml file'''
      global kml
  
      # add altitude offset
      position_data[2] += float(args.aoff)
      kml_linestring.coords.addcoordinates([position_data]f add_to_linestring(position_data, kml_linestring):
      '''add a point to the kml file'''
      global kml
  
      # add altitude offset
      position_data[2] += float(args.aoff)
      kml_linestring.coords.addcoordinates([position_data])
docs: add a point to the kml file