Sorry, I'm not habituated to the bbcode and the URLs on the previous post suffered some characters substitution. Here it goes the message again with the queries wrapped into codeboxes. Sorry for any inconvenience.
Hello there,
I'm having some issues when trying to locate a province (placetype 9) using the GeoPlanet service. Here goes an example.
There is a province with the name "Cádiz" at Spain. This same name is also used for the provincial capital. And it seems that there are also some other places with that same name around the world. If I try to locate all the provinces with that name, using something like:
CODE
http://where.yahooapis.com/v1/places$and(.q('Cádiz'),.type('9'));count=0?appid=MYAPPIDHERE&format=json&lang=es
Or without the single quotes:
CODE
http://where.yahooapis.com/v1/places$and(.q(Cádiz),.type(9));count=0?appid=MYAPPIDHERE&format=json&lang=es
I get 0 results. The same is true if I try to search substituting the 'a' with the tilde with a regular 'a':
CODE
http://where.yahooapis.com/v1/places$and(.q('Cadiz'),.type('9'));count=0?appid=MYAPPIDHERE&format=json&lang=es
But here is the strange behavior: If I look for a city that I know it is inside that province (example: Algeciras):
CODE
http://where.yahooapis.com/v1/places$and(.q('Algeciras'),.type('7'));count=0?appid=MYAPPIDHERE&format=json&lang=es
which gives me its WOE = WOE 752067, and then I look for the provinces for which Algeciras belongs to:
CODE
http://where.yahooapis.com/v1/place/752067/belongtos.type('9')?appid=MYAPPIDHERE&format=json&lang=es
then I obtain what I was looking for from the beginning: The WOE of Cádiz, which is 12602096.
Am I doing something wrong with any of the requests? Or is this a bug?