Query a location's WOEID using YQL and javascript/jquery

Posted by nav on Stack Overflow See other posts from Stack Overflow or by nav
Published on 2010-03-17T16:48:07Z Indexed on 2010/03/17 16:51 UTC
Read the original article Hit count: 647

Filed under:
|
|

Hi ,

I need to query a locations WOEID and grab the WOEID value from the xml returned.

So the user would type e.g. London, UK and I need to load the query as below:

http://query.yahooapis.com/v1/public/yql?q=select%20woeid%20from%20geo.places%20where%20text%20%3D%20%22London%2C%20UK%2C%20UK%22&format=xml

After which I need to grab the WOEID value from the returned XML. Is there a way to do this all client side, using Javascript/ JQuery?

Thanks alot

© Stack Overflow or respective owner

Related posts about yql

Related posts about JavaScript