GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
api.geonames.org/ocean local language  XML
Forum Index -> General
Author Message
tongkai.zhao



Joined: 27/03/2025 09:28:20
Messages: 1
Offline

Hi,
we want to access Ocean reverse geocoding by this API (api.geonames.org/ocean), but only English names being returned; how can i get different languages results?

eg: if setting param lang=zh, it returns a Chinese name; else if set lang=en, it returns English name
louiseravot



Joined: 12/07/2025 09:36:30
Messages: 1
Offline

Use the lang parameter in your API call, e.g., lang=zh for Chinese. It returns names in the specified language if available.
marc



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

If for an ocean the translation is not displayed then you can add it to the alternatenames of the corresponding geonameId.

It will take some days till the update is visible on the api.

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