Thanks for getting back to me. Let me provide some more details: I just switched back to CURL again, this time including some more header information in curl (browser type etc) and for the first hour, every result i tried worked great. Later, however, it started randomly failing. One example i recall is i typed in a certain address and 4 times in a row it failed, and on the 5th time it returned the results. I did an IIS reset and all queries worked again for a little while but this could be coincidence.
..I tried the geolocation URL itself and it worked fine, however when i went to maps.google.com in a browser and actually typed it in on the search, it showed me several results found. I almost think i could have these scenarios when I put in ambiguous addresses, however I was under the impression google returns error codes for that, never "". Now, however, there are still occurences where "" is returned for my xml object (even with curl). It's not all the time, however, just occasionally. Is there ever a situation using simplexml_load or file_get_contents or curl where the object would become "" instead of have valid xml? On Feb 11, 5:56 am, Rossko <[email protected]> wrote: > > I am interacting with requests a user sends in. I check first if the > > address entered was geogached, and if not, I attempt to take each term > > of the address, and ask google (with a 3 second delay between each > > term) if that particular term is valid. > > Perhaps your 3-second delay is not long enough sometimes. > Have a look at - > http://econym.org.uk/gmap/geomulti.htm > which is client-side, but you could adapt the principles like checking > the error code and adjusting the delay --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
