I’m developing an app and one of the features I want to include is being able to get the users location and convert it to a WOEID value and then get the weather data from the Yahoo Weather RSS feed. Here’s the documentation that states the requirement for the WOEID value:
http://developer.yahoo.com/weather/
I’m developing an app and one of the features I want to include is
Share
You can get the WOEID by using the Yahoo! PlaceFinder API. First you need to request an API key, then you can send your request like this:
You will get this as a response:
You can parse the response for the
<woeid>tag.Edit:
If you have an EditText and you want to get the weather based on the city you get from his input then you’ll have to do this:
Now you’ll have your search query. So e.g if the user types in:
then this will convert it to: