GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
lang code for Norwegian ?  XML
Forum Index -> General
Author Message
magnetictank



Joined: 15/03/2021 14:12:40
Messages: 2
Offline

hello
I'm working on a ws that retrieve geonames json object ( JSONSearch ) , when I set lang=nor ( for Norwegian language ) it does work work, the country and all other things are in English ( by default )

Please can you tell me what is the correct country code ? is that nn or nb ?

(seen here http://download.geonames.org/export/dump/iso-languagecodes.txt )

but which one ?

Thanks you very much

Guillaume
gregrose



Joined: 01/07/2018 00:43:15
Messages: 8
Location: Seattle, WA, USA
Offline

Hello Guillaume,

Casually looking at a bunch of Norsk placenames and the only ISO code I see is the ISO-1 'no' - and I'm not seeing it on any villages, only on farms.

Greg

magnetictank



Joined: 15/03/2021 14:12:40
Messages: 2
Offline

hi gregrose

I think there were a misunderstanding
I want to get a traduction for a city and get a full json object in Norway language :

http://api.geonames.org/searchJSON?name_startsWith=Paris&lang=no


the result of this request give answer in english, not in norwegian
marc



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

What is 'Paris' in Norwegian?

There are some elements in Norwegian:
"countryName": "Frankrike",
"fcodeName": "Hovedstad",


Cheers

Marc

[WWW]
gregrose



Joined: 01/07/2018 00:43:15
Messages: 8
Location: Seattle, WA, USA
Offline

Well in the case of Paris, the Norwegian (no) and Nynorsk (nn) translations are both entered in Geonames as "Paris". I assume that's not correct, but your query will only return the string value as stored in Geonames.
Hopefully I'm understanding your question - if not, what would you expect the query to return in the case of Paris?
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team