Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9123399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:19:48+00:00 2026-06-17T06:19:48+00:00

I’m developing an app and one of the features I want to include is

  • 0

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/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:19:50+00:00Added an answer on June 17, 2026 at 6:19 am

    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:

    http://where.yahooapis.com/geocode?q=[search query]&appid=[yourappidhere]
    

    You will get this as a response:

    <ResultSet xmlns:ns1="http://www.yahooapis.com/v1/base.rng" version="2.0" xml:lang="en-US">
    <Error>0</Error>
    <ErrorMessage>No error</ErrorMessage>
    <Locale>en-US</Locale>
    <Found>1</Found>
    <Quality>85</Quality>
    <Result>
    <quality>85</quality>
    <latitude>38.898708</latitude>
    <longitude>-77.036369</longitude>
    <offsetlat>38.89719</offsetlat>
    <offsetlon>-77.036537</offsetlon>
    <radius>400</radius>
    <name/>
    <line1>1600 Pennsylvania Ave NW</line1>
    <line2>Washington, DC 20500-0005</line2>
    <line3/>
    <line4>United States</line4>
    <house>1600</house>
    <street>Pennsylvania Ave NW</street>
    <xstreet/>
    <unittype/>
    <unit/>
    <postal>20500-0005</postal>
    <neighborhood/>
    <city>Washington</city>
    <county>District of Columbia</county>
    <state>District of Columbia</state>
    <country>United States</country>
    <countrycode>US</countrycode>
    <statecode>DC</statecode>
    <countycode>DC</countycode>
    <uzip>20500</uzip>
    <hash>4216F67AA1A143E9</hash>
    <woeid>12766118</woeid> // This is what you need
    <woetype>11</woetype>
    </Result>
    </ResultSet>
    

    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:

    String searchQuery = Uri.encode(myEditText.getText().toString());
    

    Now you’ll have your search query. So e.g if the user types in:

    Hamburg Germany

    then this will convert it to:

    Hamburg_Germany

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm interested in microtypography issues on the web. I want a tool to fix:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I want to show the soap response to UIWebview.. my soap response is, <p><img
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.