0

Search with .type filter doesn't work

by
5 Replies
  • This looks like a bug (I am logging a ticket). In the mean time it looks like it is possible to supply the Matrix parameter before the Filter,

    i.e. move the "count=0" before the ".type(state)" like:

    http://where.yahooapis.com/v1/place/234249...t&appid=xxx
    0
  • Thank you Walter for the workaround

    QUOTE (Walter @ Mar 24 2010, 03:34 AM) <{POST_SNAPBACK}>
    This looks like a bug (I am logging a ticket). In the mean time it looks like it is possible to supply the Matrix parameter before the Filter,

    i.e. move the "count=0" before the ".type(state)" like:

    http://where.yahooapis.com/v1/place/234249...t&appid=xxx
    0
  • QUOTE (MarcoP @ Mar 24 2010, 03:56 AM) <{POST_SNAPBACK}>
    Thank you Walter for the workaround


    Walter's approach does not work as you expect. Filters must be specified before matrix parameters. If the filter is specified after a matrix parameter it is ignored.

    The actual problem is that the .type filter requires either a placetype code or a placetype name. Since placetype names may be country- and language-specific (e.g. State is Stato in Italian), you should use placetype codes (e.g. 8 for State/Stato) when you don't know the correct placetype name in the requested language and country.

    Try the following code:

    CODE
    http://where.yahooapis.com/v1/place/23424977/children.type(8);count=0?appid=xxxx&lang=it


    Eddie Babcock
    Yahoo! Geo Technologies
    0
  • QUOTE (Eddie B @ Mar 24 2010, 10:34 AM) <{POST_SNAPBACK}>
    Walter's approach does not work as you expect. Filters must be specified before matrix parameters. If the filter is specified after a matrix parameter it is ignored.

    The actual problem is that the .type filter requires either a placetype code or a placetype name. Since placetype names may be country- and language-specific (e.g. State is Stato in Italian), you should use placetype codes (e.g. 8 for State/Stato) when you don't know the correct placetype name in the requested language and country.

    Try the following code:

    CODE
    http://where.yahooapis.com/v1/place/23424977/children.type(8);count=0?appid=xxxx&lang=it


    Eddie Babcock
    Yahoo! Geo Technologies


    Ok I undestand now. I think the placetype name in .type filter should accept only English names even if the lang is "it", in any case, for me the placetype code is the right solution.

    Thank you,
    Marco
    0
  • QUOTE (MarcoP @ Mar 26 2010, 04:46 AM) <{POST_SNAPBACK}>
    Ok I undestand now. I think the placetype name in .type filter should accept only English names even if the lang is "it", in any case, for me the placetype code is the right solution.

    Thank you,
    Marco


    We did not want to discriminate against speakers of non-English languages, who should not be expected to know the names that English speakers apply to places. We are looking into options for improving placetype name handling.

    Eddie Babcock
    Yahoo! Geo Technologies
    0
This forum is locked.

Recent Posts

in GeoPlanet General Discussion