Reputation: 18933
I am successfully parsed KML file from server and also from assets folder and get co-ordinates from KML file and able to display route from server side KML file.
But the problem for test I have download KML file for route between two location from Google map and put KML file in assets folder and accessing it. It successfully parsed and i got coordinates in log also but i can't able to display route on map using that co-ordinates.. So can anybody tell that can't we display route from downloaded KML file from google map. For test i have checked if that downloaded KML file is valid or not and I came to know its a valid KML file.
I am parsing my KML file using SAXParser.
Upvotes: 0
Views: 541
Reputation: 18933
Though I have spent 2 days for this Finally I got solution.
In my KML
file I was using XML schema
as
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2">
So i have just replace as
<kml xmlns="http://www.opengis.net/kml/2.2">
only and also add
<altitudeMode>absolute</altitudeMode>
tag in <PlaceMark>
tag.
Upvotes: 1