Greetings. Just cutting my teeth on YQL -- very powerful stuff!
I'm using an execute block in my Open Data Table Definition that looks something like this:
CODE
<execute>
<![CDATA[
var myRequest = y.rest('http://foo.com').query("location", location);
var data = myRequest.get().response;
response.object = data;
]]>
</execute>
The location parameter is a GPS coordinate, in a form like: "38.889722,-77.008889".
When I query with something like the following:
CODE
use "http://mydomain.com/yql/odt_def.xml";select * from odt_def where location="38.889722,-77.008889";
YQL replaces the comma with "%252c", as in:
CODE
http://foo.com?location=38.889722%252c-77.008889
The above query does not work; while either of the following would work fine:
CODE
http://foo.com?location=38.889722%2c-77.008889
http://foo.com?location=38.889722,-77.008889
I'm probably missing something basic, but didn't see anything in this forum.
Thank you,
Brian Felder