Create KML route -


i trying create route based off lon & lat's. have far, doesn't seem working correctly.

<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2">  <document>   <placemark>     <name>test</name>     <description>test desc</description>     <point>       <coordinates>-80.54400115,43.4250264</coordinates>       <coordinates>-80.52674314,43.43127701</coordinates>       ...     </point>     </placemark>   </document> <kml>  

is syntax correct? when load in maps app, doesn't show route.

please see kml reference

  1. kml xml case sensitive (placemark not same placemark)
  2. a <point> single location
  3. a line <linestring>
  4. your xml needs valid (</kml> needed close opening <kml>).

example

kml example above on google maps

<?xml version="1.0" encoding="utf-8"?><kml xmlns="http://www.opengis.net/kml/2.2">         <document> <placemark><name>test</name> <description>test desc</description> <linestring> <coordinates> -80.54400115,43.4250264 -80.52674314,43.43127701 -80.5274517,43.43458707 -80.53223781,43.43876923 -80.54385782,43.44993036 -80.53949137,43.45723788 -80.53950793,43.46780893 -80.53352615,43.4730443 -80.53491389,43.47816267 -80.54136061,43.48417145 -80.54163034,43.48439869 </coordinates> </linestring> </placemark></document> </kml>  

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -