0

focusWoeId

I have a news article from Arlington, TX, and I can't get Placemaker to stop returning Arlington, VA. I set the focusWoeId to:

55949112 "US" "MSA Dallas-Fort Worth-Arlington" ENG Zone 2347602

But that didn't appear to alter the results.

Am I missing something?

by
4 Replies
  • QUOTE (Eric I @ May 24 2009, 04:16 AM) <{POST_SNAPBACK}>
    I have a news article from Arlington, TX, and I can't get Placemaker to stop returning Arlington, VA. I set the focusWoeId to:

    55949112 "US" "MSA Dallas-Fort Worth-Arlington" ENG Zone 2347602

    But that didn't appear to alter the results.

    Am I missing something?

    Nope. That's what the focus is really meant for -- give a hint to the disambiguation process where the result(s) is/are likely to be.
    So far the theory.

    In practice that hint is often not consider enough it would appear...
    0
  • The Placemaker User Guide has the wrong capitalization for the focusWoeId parameter. The focusWoeId parameter should be set to "2347602" for your example. Here is an example for using this parameter:

    CODE
    http://wherein.yahooapis.com/v1/document

    documentType=text/plain&appid=replace_this_with_your_appid&focusWoeId=2347602&documentContent=Arlington
    Returns an entry for "Arlington, TX, US"

    You must post the content to the URL.

    Eddie Babcock
    Yahoo! Geo Technologies

    QUOTE (Eric I @ May 24 2009, 04:16 AM) <{POST_SNAPBACK}>
    I have a news article from Arlington, TX, and I can't get Placemaker to stop returning Arlington, VA. I set the focusWoeId to:

    55949112 "US" "MSA Dallas-Fort Worth-Arlington" ENG Zone 2347602

    But that didn't appear to alter the results.

    Am I missing something?
    0
  • QUOTE (Eddie B @ May 28 2009, 04:08 PM) <{POST_SNAPBACK}>
    The Placemaker User Guide has the wrong capitalization for the focusWoeId parameter. The focusWoeId parameter should be set to "2347602" for your example. Here is an example for using this parameter:

    CODE
    http://wherein.yahooapis.com/v1/document

    documentType=text/plain&appid=replace_this_with_your_appid&focusWoeId=2347602&documentContent=Arlington
    Returns an entry for "Arlington, TX, US"

    You must post the content to the URL.

    Eddie Babcock
    Yahoo! Geo Technologies


    I tried this,
    CODE
    http://wherein.yahooapis.com/v1/document/1?documentType=text/plain&appid=replace_this_with_your_appid&focusWoeId=2347602&documentContent=Arlington

    but it gives this error :
    CODE
    <yahoo:error xml:lang="">
    <yahoo:description>GET method not supported</yahoo:description>
    <yahoo:detail>
    <code>-9991</code>
    <cause>input</cause>
    </yahoo:detail>
    </yahoo:error>
    0
  • The example code was bad. You must post the content to the URL. I've corrected the example code to show that it is not a GET request.

    Eddie Babcock
    Y! Geo Technologies

    QUOTE (sandy @ Jun 18 2009, 03:14 AM) <{POST_SNAPBACK}>
    I tried this,
    CODE
    http://wherein.yahooapis.com/v1/document/1?documentType=text/plain&appid=replace_this_with_your_appid&focusWoeId=2347602&documentContent=Arlington

    but it gives this error :
    CODE
    <yahoo:error xml:lang="">
    <yahoo:description>GET method not supported</yahoo:description>
    <yahoo:detail>
    <code>-9991</code>
    <cause>input</cause>
    </yahoo:detail>
    </yahoo:error>
    0
This forum is locked.

Recent Posts

in Placemaker General Discussion