Skip to content

Instantly share code, notes, and snippets.

@bogardpd
Created September 30, 2019 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogardpd/6c89d0487c9e5da240cecd08d3ce665c to your computer and use it in GitHub Desktop.
Save bogardpd/6c89d0487c9e5da240cecd08d3ce665c to your computer and use it in GitHub Desktop.
flights.kml example
<?xml version="1.0" encoding="UTF-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Flights</name>
<description>Map of flight routes, created by Paul Bogard’s Flight Historian</description>
<Style id="airportMarker">
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png</href>
</Icon>
</Style>
<Style id="flightPath">
<LineStyle>
<color>ff0000ff</color>
<width>2</width>
</LineStyle>
</Style>
<Folder>
<name>Airports</name>
<Placemark>
<name>ATL / KATL</name>
<description>Atlanta</description>
<styleUrl>#airportMarker</styleUrl>
<Point>
<coordinates>-84.427864,33.6366996,0</coordinates>
</Point>
</Placemark>
<!-- Repeat Placemark tag for every airport -->
</Folder>
<Folder>
<name>Routes</name>
<Placemark>
<name>ATL–BOS</name>
<styleUrl>#flightPath</styleUrl>
<LineString>
<tessellate>1</tessellate>
<coordinates>-84.427864,33.6366996,0 -71.0063889,42.3629444,0</coordinates>
</LineString>
</Placemark>
<!-- Repeat Placemark tag for every route -->
</Folder>
</Document>
</kml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment