Author |
Message |
15/03/2021 22:46:00
|
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
|
|
|
17/03/2021 17:54:02
|
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
|
|
|
19/03/2021 21:34:33
|
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
|
|
|
24/03/2021 22:37:02
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4412
Offline
|
What is 'Paris' in Norwegian?
There are some elements in Norwegian:
"countryName": "Frankrike",
"fcodeName": "Hovedstad",
Cheers
Marc
|
|
|
|
24/03/2021 22:37:02
|
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?
|
|
|
|