GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Language in http://ws.geonames.org/findNearby  XML
Forum Index -> General
Author Message
geotag



Joined: 28/10/2007 17:51:19
Messages: 2
Offline

There seems to be some odd behaviour in the (ok, undocumented) http://ws.geonames.org/findNearby
If no language is specified, the results are in English. If a language is specified the results are in that language, unless the language is not regognized, like lang=xx or lang=no (for Norwegian), in which case the results are shown in German. For example:
http://ws.geonames.org/findNearby?lat=47.30&lng=12.83&lang=no
returns
<countryName>Österreich</countryName> 
.
My Norwegian users are complaining
Should I code around this or will it change?

Andreas
marc



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

Hi Andreas

Thanks. The default locale on one of the servers was German. I have changed it to English.

Cheers

Marc

[WWW]
piotridzikowski



Joined: 18/06/2008 11:00:25
Messages: 2
Offline

Hi.
Another strange thing with lang param:
: param lang is empty:
http://ws.geonames.org/countrySubdivision?lat=51.116555&lng=17.000824&style=full&lang=pl
: param lang is pl
http://ws.geonames.org/countrySubdivision?lat=51.116555&lng=17.000824&style=full&lang=
:no lang param
http://ws.geonames.org/countrySubdivision?lat=51.116555&lng=17.000824&style=full
look at adminName1 and countryName
marc



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

The names are derived from the 'alternatenames' :
http://www.geonames.org/3337492/wojewodztwo-dolnoslaskie.html


Marc

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