Skip to content

Instantly share code, notes, and snippets.

@zkkmin
Created Jun 22, 2017
Embed
What would you like to do?
Sample KML file for barrier-free routes with source and destination postal codes pairs as route identification.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http:www.opengis.net/kml/2.2">
<Document>
<Style id="redLinePoly">
<LineStyle>
<color>ff0000ff</color>
<width>4</width>
</LineStyle>
</Style>
<Placemark>
<name>380111-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.884276,1.320454,0
103.884260,1.320540,0
103.885140,1.320580,0
103.885590,1.320610,0
103.885630,1.319920,0
103.885650,1.318865,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380113-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.886072,1.320508,0
103.886090,1.320420,0
103.886630,1.320450,0
103.886660,1.320270,0
103.886720,1.319780,0
103.886610,1.319760,0
103.886640,1.319320,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380115-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.887309,1.321208,0
103.887220,1.321670,0
103.886784,1.321744,0
103.886658,1.321243,0
103.886570,1.321210,0
103.886630,1.320450,0
103.886660,1.320270,0
103.886720,1.319780,0
103.886610,1.319760,0
103.886640,1.319320,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380120-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.884695,1.318244,0
103.884733,1.318489,0
103.885152,1.318501,0
103.885445,1.318556,0
103.885702,1.318578,0
103.885650,1.318865,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380123-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.885422,1.318083,0
103.885445,1.318556,0
103.885702,1.318578,0
103.885650,1.318865,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380124-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.886632,1.318358,0
103.886300,1.318340,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380128-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.887552,1.318495,0
103.887280,1.318430,0
103.887108,1.318845,0
103.886958,1.318821,0
103.886710,1.318744,0
103.886346,1.318753,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380129-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.888197,1.316855,0
103.888481,1.317130,0
103.888569,1.317432,0
103.888754,1.317691,0
103.888819,1.317832,0
103.888941,1.318173,0
103.888919,1.318247,0
103.888906,1.318358,0
103.888901,1.318446,0
103.888861,1.318594,0
103.888843,1.318660,0
103.888841,1.318834,0
103.888818,1.318897,0
103.888691,1.319175,0
103.888680,1.319470,0
103.886880,1.319120,0
103.886602,1.319104,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380134-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.886013,1.315955,0
103.885897,1.316234,0
103.885860,1.316430,0
103.885670,1.316420,0
103.885476,1.316388,0
103.885224,1.316542,0
103.885350,1.316870,0
103.885676,1.317601,0
103.885720,1.317640,0
103.885830,1.317910,0
103.886270,1.317940,0
103.886300,1.318340,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380133-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.885476,1.316388,0
103.885224,1.316542,0
103.885350,1.316870,0
103.885676,1.317601,0
103.885720,1.317640,0
103.885830,1.317910,0
103.886270,1.317940,0
103.886300,1.318340,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>381125-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.886593,1.317742,0
103.886270,1.317940,0
103.886300,1.318340,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380122-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.884963,1.317678,0
103.885307,1.317901,0
103.885422,1.318083,0
103.885445,1.318556,0
103.885702,1.318578,0
103.885650,1.318865,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380127-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.887406,1.318102,0
103.887640,1.318070,0
103.887810,1.318310,0
103.887552,1.318495,0
103.887280,1.318430,0
103.887108,1.318845,0
103.886958,1.318821,0
103.886710,1.318744,0
103.886346,1.318753,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>381126-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.886937,1.317887,0
103.887120,1.318240,0
103.886632,1.318358,0
103.886300,1.318340,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380130-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.887750,1.316958,0
103.888197,1.316855,0
103.888481,1.317130,0
103.888569,1.317432,0
103.888754,1.317691,0
103.888819,1.317832,0
103.888941,1.318173,0
103.888919,1.318247,0
103.888906,1.318358,0
103.888901,1.318446,0
103.888861,1.318594,0
103.888843,1.318660,0
103.888841,1.318834,0
103.888818,1.318897,0
103.888691,1.319175,0
103.888680,1.319470,0
103.886880,1.319120,0
103.886602,1.319104,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380131-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.886917,1.316780,0
103.886260,1.316640,0
103.886270,1.316520,0
103.885860,1.316430,0
103.885670,1.316420,0
103.885476,1.316388,0
103.885224,1.316542,0
103.885350,1.316870,0
103.885676,1.317601,0
103.885720,1.317640,0
103.885830,1.317910,0
103.886270,1.317940,0
103.886300,1.318340,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380132-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.885897,1.316234,0
103.885860,1.316430,0
103.885670,1.316420,0
103.885476,1.316388,0
103.885224,1.316542,0
103.885350,1.316870,0
103.885676,1.317601,0
103.885720,1.317640,0
103.885830,1.317910,0
103.886270,1.317940,0
103.886300,1.318340,0
103.886263,1.318705,0
103.885902,1.318585,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>380121-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.885307,1.317901,0
103.885422,1.318083,0
103.885445,1.318556,0
103.885702,1.318578,0
103.885650,1.318865,0
103.885853,1.318893,0
103.886211,1.318971,0
103.886426,1.319036,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>370065-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.887228,1.327454,0
103.887820,1.327230,0
103.887920,1.327040,0
103.887970,1.326950,0
103.888110,1.326690,0
103.888170,1.326590,0
103.888220,1.326480,0
103.888300,1.326340,0
103.888380,1.326120,0
103.888390,1.325910,0
103.888420,1.325540,0
103.888580,1.324960,0
103.888690,1.324710,0
103.888730,1.324520,0
103.888770,1.324390,0
103.888800,1.324270,0
103.888820,1.324180,0
103.888990,1.323540,0
103.889000,1.323350,0
103.889050,1.323020,0
103.889080,1.322890,0
103.888341,1.322788,0
103.886595,1.322676,0
103.886200,1.322500,0
103.886230,1.321920,0
103.886580,1.321910,0
103.886530,1.321700,0
103.886570,1.321210,0
103.886630,1.320450,0
103.886660,1.320270,0
103.886720,1.319780,0
103.886610,1.319760,0
103.886640,1.319320,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>370080-380119</name>
<styleUrl>#redLinePoly</styleUrl>
<LineString>
<coordinates>
103.887094,1.327900,0
103.886720,1.327910,0
103.886044,1.328012,0
103.885800,1.328010,0
103.885720,1.327780,0
103.885677,1.327504,0
103.885471,1.327571,0
103.885460,1.327360,0
103.885450,1.327270,0
103.885440,1.327180,0
103.885410,1.326940,0
103.885360,1.326750,0
103.885340,1.326590,0
103.885330,1.326460,0
103.885260,1.326030,0
103.885230,1.325830,0
103.885240,1.325740,0
103.885230,1.325650,0
103.885220,1.325570,0
103.885160,1.325260,0
103.885140,1.325030,0
103.885120,1.324800,0
103.885100,1.324610,0
103.885070,1.324260,0
103.885070,1.324030,0
103.885450,1.323980,0
103.885505,1.323893,0
103.885481,1.323645,0
103.885440,1.323310,0
103.885401,1.322948,0
103.885430,1.322640,0
103.885738,1.322645,0
103.886200,1.322500,0
103.886230,1.321920,0
103.886580,1.321910,0
103.886530,1.321700,0
103.886570,1.321210,0
103.886630,1.320450,0
103.886660,1.320270,0
103.886720,1.319780,0
103.886610,1.319760,0
103.886640,1.319320,0
103.886512,1.319250,0
</coordinates>
</LineString>
</Placemark>
</Document>
</kml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment