I am a Student..and right now trying to develop code for android..that shows nearby hospital l开发者_运维知识库ocations to user's current location.. i know how to get kml file for that..and know that i need to parse that file..to get different Placemark attribute value.. but couldn't succeed .. so if any of my friends have small guide,tutorial,code,example regarding how to parse the kml file for fetching value of multiple placemark..please please let me know..
Thank You.
fire a html query for a url like this :
http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=hospitals&aq=&sll=54.89517,-1.866302&sspn=0.323796,0.811615&ie=UTF8&hq=hospitals&hnear=&ll=54.902277,-1.800385&spn=0.323738,0.811615&z=11&output=kml
note these
hq=hospitals
and
output=kml
You will receive a kml. Next you will need a sax parser. This code is sufficiently awesome. Use it only as a reference.
精彩评论