hi,

i'm doing an iphone app and want to download the results of a search
that looks like this:

http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=hospital&sll=%-4f,%-4f

where the -4f's are my lat lon.  i get correct looking JSON data back,
that starts out like:

{"responseData": {"results":
[{"GsearchResultClass":"GlocalSearch","viewportmode":"computed","listingType":"local","lat":"37.386908","lng":"-122.086026","accuracy":"8","title":"Vandana
Hospitality Inc","titleNoFormatting":"Vandana Hospitality
Inc","ddUrl":"http://www.google.com/maps?

i have a JSON parser in my code that works, as i've used it on another
project, (not google maps), but this one is giving me the following on
the complete version of the above url:

-JSONValue failed. Error trace is: (
    Error Domain=org.brautaset.JSON.ErrorDomain Code=5
UserInfo=0x45827c0 "Unescaped control character '0x0'",
    Error Domain=org.brautaset.JSON.ErrorDomain Code=3
UserInfo=0x45461a0 "Object value expected for key: staticMapUrl",
    Error Domain=org.brautaset.JSON.ErrorDomain Code=3
UserInfo=0x4546110 "Expected value while parsing array",
    Error Domain=org.brautaset.JSON.ErrorDomain Code=3
UserInfo=0x433ebd0 "Object value expected for key: results",
    Error Domain=org.brautaset.JSON.ErrorDomain Code=3
UserInfo=0x4347390 "Object value expected for key: responseData"
)


does google maps require something different to parse these messages?

not sure where to go from here, any suggestions?

thanks...

--

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