On Sat, Nov 15, 2008 at 8:10 AM, marcelo <[EMAIL PROTECTED]> wrote: > > This is a PHP question about how to sent an http request, and not a > Google Maps API question. > If you're getting 602 responses it is because the server doen't > understand what you're saying and cannot find the address. > > Hint: use urlencode() on the address,
> and not the '+' signs for > spaces. huh? why? http://www.w3.org/Addressing/rfc1630.txt (page 6) even urlencode itself replaces spaces with +'s You thinking of rawurlencode? f3ze, not that it helps you but I tried your code (even with your key) and it worked fine from here. Is that the exact code you are using? A common issue I have seen is entities - ie using & in your url. Which some browsers will automatically change for you > > > -- > Marcelo - http://maps.forum.nu > -- > > > On Nov 15, 8:14 am, f3ze <[EMAIL PROTECTED]> wrote: >> Uusing a browser I get 200 responses from these two: >> >> http://maps.google.co.nz/maps/geo?q=60+tapeka+rd,+russell,+northland,... >> >> http://maps.google.co.nz/maps/geo?q=kerikeri+rd,+kerikeri,+northland,... >> >> But getting via PHP returns a 602: >> >> $gg_query_result = file_get_contents("http://maps.google.co.nz/maps/ >> geo?q=60+tapeka+rd,+russell,+northland, >> +nz&output=csv&key=ABQIAAAAAGNZ8K1XCXT4L2hBGT3v0RQYK8a9jbuifQNkRTaHnDgUOS560BQ8c753CjzFvP0H0OJGT18WHlPDqQ"); >> $gg_result = explode(',',$gg_query_result); >> echo $gg_result[0]; >> // gives 602 >> >> Any tips appreciated (I've incorporated the tips from similar >> questions in this group, but I still have the problem so the new >> post). >> >> Thanks > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
