Hi all,

Hopefully this is a very easy problem to resolve.  I have written a
geocoder in VB.NET which reads the XML response from google.  All is
fine and good, but im trying to read the Accuracy code section of the
XML page but am really struggling to pick it up using my current code
as it’s a differnet part of the XML string (??).  Any ideas are
welcome!

Thanks

Chris

               XmlRdr = New XmlTextReader(url)

                XmlRdr.WhitespaceHandling = WhitespaceHandling.All
                XmlRdr.MoveToContent()

                lGeoFlag = False

                Do While Not XmlRdr.EOF

                    If XmlRdr.Name = "address" Then
                        sFormattedAddress = XmlRdr.ReadString
                    End If

                    If XmlRdr.Name = "AddressDetails" Then

                        sGeocodeAccuracy = XmlRdr.ReadString
                        lGeoFlag = True

                    End If

                    If XmlRdr.Name = "Point" And lGeoFlag = True Then
                        strTmp = XmlRdr.ReadString()
                        tmpLatLong = XmlRdr.ReadString()
                        Exit Do
                    End If

                    XmlRdr.Read()

                Loop

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to