retstr+= "\n\t\t<Placemark>\n\t\t\t<name>%s</name>\n\t\t\t<description>\n\t\t\t\t<![CDATA[Altitude: %s<br/>Heading: %i<br/>Speed: %i<br/>Vertical speed: %i<br/>ICAO: %x<br/>Last seen: %s]]>\n\t\t\t</description>\n\t\t\t<Model id='%s'>\n\t\t\t\t<altitudeMode>absolute</altitudeMode>\n\t\t\t\t<Location>\n\t\t\t\t\t<longitude>%s</longitude>\n\t\t\t\t\t<latitude>%s</latitude>\n\t\t\t\t\t<altitude>%i</altitude>\n\t\t\t\t</Location>\n\t\t\t\t<Orientation>\n\t\t\t\t\t<heading>%i</heading>\n\t\t\t\t\t<tilt>0</tilt>\n\t\t\t\t\t<roll>0</roll>\n\t\t\t\t</Orientation>\n\t\t\t\t<Scale>\n\t\t\t\t\t<x>1</x>\n\t\t\t\t\t<y>1</y>\n\t\t\t\t\t<z>1</z>\n\t\t\t\t</Scale>\n\t\t\t\t<Link>\n\t\t\t\t\t<href>airplane.kmz/models/airplane.dae</href>\n\t\t\t\t</Link>\n\t\t\t\t</Model>\n\t\t</Placemark>" % (ident, alt, heading, speed, vertical, icao[0], seen, icao[0], lon, lat, metric_alt, -180-heading, )