"Altitude" is ignored without "<altitudeMode>" that is explained later.
As the example for "Point", "Style" can be defined and used the style id in "styleUrl".
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0"> <Document>
<Placemark>
<LineString>
<coordinates>
135.2, 35.4, 0.
135.4, 35.6, 0.
135.2, 35.6, 0.
</coordinates>
</LineString>
</Placemark>
</Document> </kml>
The first 2 lines and the last 1 line are the begining and the end of KML file, respectively. So please leave them as it is.
The tag of KML is case-sensitive.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0"> <Document>
<Placemark>
<LineString>
<coordinates>
135.2, 35.4, 0.
135.4, 35.6, 0.
135.2, 35.6, 0.
</coordinates>
</LineString>
<Style>
<LineStyle>
<color>#ff0000ff</color>
</LineStyle>
</Style>
</Placemark>
</Document> </kml>
The color can be specified in HEX (00-ff) in the order of Transparency, Blue, Green, and Red. For example, "ff0000ff" is opaque red.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0"> <Document>
<Placemark>
<LineString>
<coordinates>
135.2, 35.4, 1000.
135.4, 35.6, 10000.
135.2, 35.6, 5000.
</coordinates>
<altitudeMode>absolute</altitudeMode>
</LineString>
<Style>
<LineStyle>
<color>#ff0000ff</color>
<width>5</width>
</LineStyle>
</Style>
</Placemark>
</Document> </kml>
As the example "Point", altitude relative to the ground can be specified by
"<altitudeMode>relativeToGround</altitudeMode>"
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0"> <Document>
<Placemark>
<name> New Line</name>
<TimeSpan>
<begin>2010-12-20T03:00:00Z</begin>
<end>2010-12-21T02:59:59Z</end>
</TimeSpan>
<description>This is a new line.</description>
<LineString>
<coordinates>
135.2, 35.4, 1000.
135.4, 35.6, 10000.
135.2, 35.6, 5000.
</coordinates>
<altitudeMode>absolute</altitudeMode>
</LineString>
<Style>
<LineStyle>
<color>#ff0000ff</color>
<width>5</width>
</LineStyle>
<BalloonStyle>
<bgColor>00664422</bgColor> <textColor>fffffff</textColor>
<text><![CDATA[ $[name] <HR> $[description] <BR>
<A HREF="http://www-step.kugi.kyoto-u.ac.jp/">SPEL Home page</A>
]]> </text>
</BalloonStyle>
</Style>
</Placemark>
</Document> </kml>
Time in Universal Time (UT) can be set by "YYYY-MM-DDTHH:MM:SSZ".
Start and end time are set by "