On 8 October 2010 10:13, Andrew Leach <[email protected]> wrote:
> On Oct 8, 9:23 am, nloeSupport <[email protected]> wrote:
>>
>> But it is strange, because what i'm getting from your url definitely
>> has newline symbols in it. Here is what i got in chrome :  http://goo.gl/IZez
>> And here is request that my app is actually sending :  http://goo.gl/AlwS
>> And again here is what i'm getting in response:  http://goo.gl/gzKE
>>
>> As you can see in any response i'm getting newline symbols.
>
> Yes: I can reproduce it in Chrome. Firefox and IE don't include
> newlines, so it looks like a browser feature in Chrome. However: that
> should be just a display format (rather like how IE handles XML), it
> shouldn't affect the processing because Google don't generate it with
> newlines. Try your app in other browsers and see what happens.

Actully the API is producing the newlines, try
http://rexswain.com/httpview.html

You can see them if use the View Source feature in IE/Firefox. (Its
just chrome is displaying the output as text, whereas Firefox is doing
html - which ignores whitespace)

However I just tried the directions API output with the php JSON lib,
it didnt complain about the newlines and successfully parsed it.

Checking http://www.json.org/ - seems to suggest newlines are valid.

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

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