Thanks for all your advice its working now. Redirection duly noted.
Once again thanks! On Jun 24, 12:57 pm, Andrew Leach <[email protected]> wrote: > On Jun 24, 12:15 pm, Chris <[email protected]> wrote: > > > 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! > > It's called an Attribute. This isn't an API question, it's a question > about the VB XmlTextReader > class.http://www.google.com/search?q=xmltextreader+attribute > > If XmlRdr.Name = "AddressDetails" Then > sGeocodeAccuracy = "-1" > If XmlRdr.HasAttributes Then > While XmlRdr.MoveToNextAttribute() > If XmlRdr.Name = "Accuracy" Then > sGeocodeAccuracy = XmlRdr.Value > End If > Loop > End If > lGeoFlag = True > End If > > This should be future-proof code which can cope with additional > attributes in the AddressDetails element, and also sets > sGeocodeAccuracy to an abnormal value if the attribute is missing for > some reason. You may want to move your lGeoFlag somewhere else within > the loop, depending on what that is supposed to indicate. > > NB: The Terms of Service require you to have a map if you use Google's > geocoding service. And while *I* am happy to look up things which are > vaguely interesting, this is very much off-topic for a Group dealing > with the Javascript API. > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
