Ah, but of course.  Schoolboy error ;)

Cheers mate!

J

On Oct 28, 2:15 am, "[email protected]" <[email protected]>
wrote:
> On Oct 27, 5:54 pm, John <[email protected]> wrote:
>
> > Hi all,
>
> > I'm having problem retrieving data for postcodes that contain a
> > space.  When I use:  $a = json_decode(file_get_contents('http://
> > maps.googleapis.com/maps/api/geocode/json?address=UK+N13
> > 4&sensor=false'), true);    it comes back blank.  But, if I manually
> > enter the URL into my browser it works.
>
> > Can anyone tell me what I'm doing wrong?
>
> URLs cannot contain spaces.
>
> http://www.w3schools.com/tags/ref_urlencode.asp
>
>   -- Larry
>
>
>
>
>
>
>
>
>
> > All the best,
> > john

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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