Parse Google GeoCode xml in VB.net -
ok got little chunck of code goes out , brings xml google location after send lat , long. need able 1 line out of it. second result set need formatted_address. never done xml parsing in vb.net way lost.
dim webclient new system.net.webclient dim result string = webclient.downloadstring("http://maps.googleapis.com/maps/api/geocode/xml?latlng=44.46944050638752,-88.08779155546756&sensor=false") return result
after lost!
in case needs know. figured out. here did:
dim myaddress string = "nothing" dim webclient new system.net.webclient dim result string = webclient.downloadstring("http://maps.googleapis.com/maps/api/geocode/xml?latlng=lat,long&sensor=false") dim xmldoc new xmldocument() xmldoc.loadxml(result) dim m_nodelist xmlnodelist m_nodelist = xmldoc.selectnodes("/geocoderesponse/result/formatted_address") myaddress = m_nodelist(1).innertext result = myaddress
Comments
Post a Comment