GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Wrong language return for name_startsWith  XML
Forum Index -> General
Author Message
hekjje



Joined: 22/12/2009 11:04:10
Messages: 2
Location: Odense, Denmark
Offline

Hi,

Is that possible to get the "name_startsWith" to retur the resaults acording to the "lang" param?

Ex. If I search for Rødekro with the "name_startsWith" and "lang=da" it returns Rodekro, but if I use "q" and "lang=da" it returns Rødekro.


Thx, Henrik
[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

It would be very confusing to return the main name for the language. The startsWith service therefore returns the name that corresponds to the 'startsWith' string.

Best

Marc

[WWW]
hekjje



Joined: 22/12/2009 11:04:10
Messages: 2
Location: Odense, Denmark
Offline

Hi,

If I use this query:
http://ws.geonames.org/search?q=R%C3%B8dekro&maxRows=5&lang=da where the url is encoded in UTF8 it will return Rødekro

But if I use this:
http://ws.geonames.org/search?name_startsWith=R%C3%B8dekro&maxRows=5&lang=da
also encoded in UTF8. It will return Rodekro where I would exepect the vowel "ø" instead of the first "o".

How can that be?
[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

you are right, there was a bug with the treating of an ascii conversion.

Marc

[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

The bug has been fixed some time ago.

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team