Hello all,

Thanks for your help in advance!

I am using the code found at 
http://code.google.com/support/bin/answer.py?answer=80200&topic=11364

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.

Thus I arrive at the largest concatenated string possible that is a
'valid' address by google. The reason i do this on a term basis, and
not on a full address basis, is that the user may enter a restaurant
name (which would return an error reaching out to the maps.google.com/
geo url as it's not a valid address). i think this might not be
important though but I felt i'd add it. So "applebees main street
anytown, NJ" i'd arrive at google telling me "main street anytown, NJ"
is valid.

At any rate, What I notice is about 45% of the time I get an error:
failed to open stream: HTTP request failed!
and then the xml doc cannot load the external entity.
If i try again, and again, (maybe 2-3 times) it'll work and i'll get
the address I wanted.

I understand the php.ini file contains the entry for allow_url_fopen,
however I turned this on (and if it was off, it would never work i
believe as opposed to partially)

one important thing I want to mention is that I was initially using
curl for this operation, and i was randomly getting the same problem
(where it wouldn't return me a result).
It's weird, i've tried both CSV and XML format for google and randomly
it just fails. Any suggestions i'm completely out of ideas on how to
100% of the time ensure I get a 200 back from google (If i just try
this manually from a browser it works all the time).

Thanks so much i'm so frustrated!
Mike



--~--~---------~--~----~------------~-------~--~----~
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