GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
Wrong language return for name_startsWith
Forum Index
->
General
Author
Message
22/12/2009 11:19:05
Subject:
Wrong language return for name_startsWith
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
22/12/2009 11:58:25
Subject:
Re:Wrong language return for name_startsWith
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
07/01/2010 15:45:14
Subject:
Re:Wrong language return for name_startsWith
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?
07/01/2010 22:39:47
Subject:
Re:Wrong language return for name_startsWith
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
18/02/2010 20:32:15
Subject:
Re:Wrong language return for name_startsWith
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
The bug has been fixed some time ago.
Marc
Forum Index
->
General
Go to:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About