<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Trying to lookup cities by country, but country is among results"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Trying to lookup cities by country, but country is among results"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Trying to lookup cities by country, but country is among results</title>
				<description><![CDATA[ Hi

I'm trying to retrieve a list of cities by country code, like this:

http://ws.geonames.org/search?style=short&country=TH&username=demo

I get all cities in Thailand as expected, but one of the results is Thailand itself:

...
<geoname>
<toponymName>Kingdom of Thailand</toponymName>
<name>Thailand</name>
<lat>15.5</lat>
<lng>101</lng>
<geonameId>1605651</geonameId>
<countryCode>TH</countryCode>
<fcl>A</fcl>
<fcode>PCLI</fcode>
</geoname>
...

How can I remove this from the results?

Thanks!
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/11088.page#19763</guid>
				<link>http://forum.geonames.org/gforum/posts/list/11088.page#19763</link>
				<pubDate><![CDATA[Tue, 23 Sep 2014 11:10:27]]> GMT</pubDate>
				<author><![CDATA[ brinch]]></author>
			</item>
			<item>
				<title>Re:Trying to lookup cities by country, but country is among results</title>
				<description><![CDATA[ Can post filter by fcode, 
http://www.geonames.org/export/codes.html
to remove ones you not interested in. 

Or could perhaps use the cities paramater, to limit to top cities. 
http://www.geonames.org/export/geonames-search.html

Or even the featureCode paramater, and then list the types of feature codes you do want. Probably the PPL* ones. ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/11088.page#19768</guid>
				<link>http://forum.geonames.org/gforum/posts/list/11088.page#19768</link>
				<pubDate><![CDATA[Wed, 24 Sep 2014 09:39:32]]> GMT</pubDate>
				<author><![CDATA[ barryhunter]]></author>
			</item>
			<item>
				<title>Re:Trying to lookup cities by country, but country is among results</title>
				<description><![CDATA[ http://www.geonames.org/export/geonames-search.html 

Or even the featureCode paramater, and then list the types of feature codes you do want. Probably the PPL* ones.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/11088.page#20290</guid>
				<link>http://forum.geonames.org/gforum/posts/list/11088.page#20290</link>
				<pubDate><![CDATA[Sun, 19 Oct 2014 09:14:27]]> GMT</pubDate>
				<author><![CDATA[ hunters]]></author>
			</item>
	</channel>
</rss>