Problem with Google AJAX Search API RESTful interface

Posted by robert_d on Stack Overflow See other posts from Stack Overflow or by robert_d
Published on 2010-05-04T17:22:46Z Indexed on 2010/05/07 20:58 UTC
Read the original article Hit count: 227

Filed under:
|
|
|
|

When I send the following query

http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=coffee%20New%20York%20NY

using c# WebClient.DownloadString function or ordinary web browser I get JSON data which is different from data for the same query using JavaScript and Google AJAX Search API.

From REST service I get the following url field

http://www.google.com/maps/place?source003duds0026q003dcoffee0026cid003d13245583795745066822

but from JavaScript query I get this url field

http://www.google.com/maps/place?source=uds&q=coffee&cid=13245583795745066822

The problem with REST service answer is that the url it gives points to a web page with error message "We currently do not support the location".

What am I doing wrong?

© Stack Overflow or respective owner

Related posts about google

Related posts about AJAX