I am currently in Yahoo’s 5th Open hackday, which is happening in Bangalore and just finished my talk about using Flickr API for your hacks.
Tag Archives: YQL
Full source code
I have uploaded the full source code to github and added a couple of other examples as well. Check it out.
I was trying to use YQL from Dart and found that there is no way you can do URLEncoding using Dart.
Although it works right now, I would really like to see this as part of the dart:uri package. Let’s see if someone from the Dart team is listening to this.
This past weekend, Yahoo conducted HackU (Hackday for university) at IIT – Delhi and I was part of the Technical crew that conducted the event.
Just wrote quick some code sample to show how to access YQL (Yahoo Query Language) queries from PHP.
You can use the following code sample to fetch results from YQL from any standard PHP file. You would require the curl extension to be installed. If you are behind a proxy, uncomment the 3 lines and replace it with proper proxy values
If you have the Yahoo social SDK installed and you want to access results from YQL, then you can use the following code sample. Replace the text consumer_key and consumer_secret with correct values.
Update: You can also get code snippets for other languages apart from PHP.
Chris Heilmann recently released a greasemonkey script to Geo locate WordPress posts. The script uses the recently released Yahoo Placemaker API together with YQL. I was really impressed by the simplicity and power of YQL. I enhanced the script and ported it into a WordPress Plugin named Geo Mark, which can be used in any browser.
Geo Mark WordPress Plugin
Geo Mark will automatically locate Geo information in your WordPress posts using Yahoo Placemaker and YQL API’s. Once the Geo location is located, it will add this information as custom fields to the post. The information stored in the custom field can be displayed anywhere in the post using the build in
get_post_meta() function. The Plugin also exposes template functions which can be used to generate GEO Microformats based on the location information found in the post.
Geo enabled RSS feeds
The Geo Mark Plugin also lets you to expose the location based information in RSS feeds. The Geo information stored in the custom field can be used to create Geo tags in the RSS feed. The Plugin supports the following Geo RSS formats as shown in the screenshot.
- Simple (georss:point)
- GML (gml:pos)
- W3C (geo:lat)
Why Geo marking posts is important
Adding Geo information to posts has lot of benefits. It enables data mining for location and also enables you to display information about the post on a map.