0

Continent in place query results

It would be usefull that the continent information was also available in the results of this type of queries:

http://where.yahooapis.com/v1/places.q(...;count=1?appid=[AppId]

by
4 Replies
  • We provide only the most basic information in the geographic context -- returning 'continent', 'timezone', etc. in all calls would be unhelpful to the majority of users. It is however accessible in a second call via the the 'belongtos' resource:

    http://where.yahooapis.com/v1/place/742676/belongtos?appid=[yourappidhere]

    - Tyler
    0
  • QUOTE (TyB @ Apr 20 2009, 02:36 PM) <{POST_SNAPBACK}>
    We provide only the most basic information in the geographic context -- returning 'continent', 'timezone', etc. in all calls would be unhelpful to the majority of users. It is however accessible in a second call via the the 'belongtos' resource:

    http://where.yahooapis.com/v1/place/742676/belongtos?appid=[yourappidhere]

    - Tyler


    But that doesn't always return the continent, see 'San Francisco' http://where.yahooapis.com/v1/place/2487956/belongtos?appid=
    0
  • QUOTE (imdqa @ Apr 23 2009, 03:43 AM) <{POST_SNAPBACK}>
    But that doesn't always return the continent, see 'San Francisco' http://where.yahooapis.com/v1/place/2487956/belongtos?appid=


    My bad, I hadn't noticed that the default number of places returned were 10 and the continent for this case was in the 14th place
    0
  • You can retrieve just the continent information for a place by including a .type filter in your request. This restricts the results to the provided place type(s). Here is an example:

    CODE
    http://where.yahooapis.com/v1/place/2487956/belongtos.type(continent)?appid=
    returns continent WOEID and name

    If you want more information about the continent, such as centroid and bounding box, you can include the query parameter "select=long". Here is an example:

    CODE
    http://where.yahooapis.com/v1/place/2487956/belongtos.type(continent)?select=long&appid=
    returns continent WOEID, name, centroid, and bounding box

    Eddie Babcock
    Yahoo! Geo Technologies

    QUOTE (imdqa @ Apr 23 2009, 09:33 AM) <{POST_SNAPBACK}>
    My bad, I hadn't noticed that the default number of places returned were 10 and the continent for this case was in the 14th place
    0
This forum is locked.

Recent Posts

in GeoPlanet Enhancement Requests