<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How can I get the name of a city in several languages?"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "How can I get the name of a city in several languages?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How can I get the name of a city in several languages?</title>
				<description><![CDATA[ hi,

is that possible to get the name of a city, given its geonameId, in several languages, and with one request?
I'm currently using

http://ws.geonames.org/getJSON?geonameId=xxxxxx

and get the alternateNames 'name' value for the 'lang' value I'm interested in.
The problem is that some results have several alternateNames with the same 'lang' value (e.g. new, york, big apple...).

How can I get the name returned by the request when setting a 'lang' value directly in the request?

thanks]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1637.page#6763</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1637.page#6763</link>
				<pubDate><![CDATA[Sun, 29 Nov 2009 17:08:26]]> GMT</pubDate>
				<author><![CDATA[ jul]]></author>
			</item>
			<item>
				<title>Re:How can I get the name of a city in several languages?</title>
				<description><![CDATA[ The language code is only returned with the XML version of the request. For the XML request it was easy to add the info as attribute of the xml element without breaking the existing xml definition. For json it would need a refactoring of the returned object and it would break existing application.


Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1637.page#6766</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1637.page#6766</link>
				<pubDate><![CDATA[Sun, 29 Nov 2009 17:42:48]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>How can I get the name of a city in several languages?</title>
				<description><![CDATA[ ok, and how can it be done with the XML version of the request?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1637.page#6769</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1637.page#6769</link>
				<pubDate><![CDATA[Sun, 29 Nov 2009 17:55:39]]> GMT</pubDate>
				<author><![CDATA[ jul]]></author>
			</item>
			<item>
				<title>Re:How can I get the name of a city in several languages?</title>
				<description><![CDATA[ Where is the problem?  
http://ws.geonames.org/get?geonameId=5128581&style=full


Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1637.page#6772</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1637.page#6772</link>
				<pubDate><![CDATA[Mon, 30 Nov 2009 06:17:47]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:How can I get the name of a city in several languages?</title>
				<description><![CDATA[ The problem is that if I want, for instance, the name in en, fr and es, using aternateNames with the corresponding 'lang' values, I get:


http://ws.geonames.org/get?geonameId=5128581&style=full

first alternateNames with lang value='en' -> Big Apple
first alternateNames with lang value='es' -> La Gran Manzana
first alternateNames with lang value='fr' -> New York

To get the correct names I need to run 3 requests and get the 'name':

http://ws.geonames.org/get?geonameId=5128581&lang=es
name-> Nueva York

http://ws.geonames.org/get?geonameId=5128581&lang=en
name-> New York

http://ws.geonames.org/get?geonameId=5128581&lang=fr
name-> New York

Can I do it in one request?

thanks for your replies]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1637.page#6775</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1637.page#6775</link>
				<pubDate><![CDATA[Mon, 30 Nov 2009 12:07:58]]> GMT</pubDate>
				<author><![CDATA[ jul]]></author>
			</item>
			<item>
				<title>Re:How can I get the name of a city in several languages?</title>
				<description><![CDATA[ The hiearchy service returns only one name per language:
http://ws.geonames.org/hierarchy?geonameId=5128581&style=full]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1637.page#6779</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1637.page#6779</link>
				<pubDate><![CDATA[Mon, 30 Nov 2009 20:08:57]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:How can I get the name of a city in several languages?</title>
				<description><![CDATA[ Great! thanks]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1637.page#6781</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1637.page#6781</link>
				<pubDate><![CDATA[Mon, 30 Nov 2009 20:47:27]]> GMT</pubDate>
				<author><![CDATA[ jul]]></author>
			</item>
	</channel>
</rss>