0

Unicode characters in location queries

Here's an example:

http://where.yahooapis.com/geocode?flags=J...amp;appid=XXXXX

Which should be able to return Požega, a Serbian town with WOEID 536086. Problem with not being able to use ž in the query is that the first result when querying with the transliterated version of the name Pozega is an unrelated city in Croatia.

I've also noticed that this might not be a general issue with Unicode (UTF-8) characters, as Zürich is looked up correctly. But I might be wrong, since Zrich also turns up Zürich.

Can anyone tell me how to query PlaceFinder using Unicode characters?

by
1 Reply
  • PlaceFinder supports UTF-8 encoded characters.  The problem here is that there are three places named Požega (in Croatia, Serbia, and Slovenia).  PlaceFinder requires more information in order to return a good match.  You will either need to include the country name or code in the query, or include the locale parameter with the desired country code.  Here are two examples that work for Požega:

    http://where.yahooapis.com/geocode?flags=JGTRS&location=Po%C5%BEega&locale=RS&appid=XXXXX

    http://where.yahooapis.com/geocode?flags=JGTRS&location=Po%C5%BEega+RS&appid=XXXXX

    Eddie Babcock
    Yahoo! Geo Technologies

    QUOTE(Branko @ 14 Jun 2011 5:25 PM)
    Here's an example:

    http://where.yahooapis.com/geocode?flags=J...amp;appid=XXXXX

    Which should be able to return Požega, a Serbian town with WOEID 536086. Problem with not being able to use ž in the query is that the first result when querying with the transliterated version of the name Pozega is an unrelated city in Croatia.

    I've also noticed that this might not be a general issue with Unicode (UTF-8) characters, as Zürich is looked up correctly. But I might be wrong, since Zrich also turns up Zürich.

    Can anyone tell me how to query PlaceFinder using Unicode characters?
    0
This forum is locked.

Recent Posts

in PlaceFinder General Discussion