<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Best match for searching by city name"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Best match for searching by city name"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Best match for searching by city name</title>
				<description><![CDATA[ Hi,
I am new to this website and data and this is my first post so plz pardon if I am asking already asked question.

I am trying to do city -> country lookup. I have downloaded the data for all countries. But the issue is, for same city there are multiple matches in multiple countries. So I want to find the best match. Best match is little vague here but

For e.g. when I search for 'Moscow' on UI, Moscow in Russia is the first result which is what I want. But if I just grep through the downloaded data, there are almost 30 records in Russia, US etc. There is no way to priortize. 

Does anybody have any idea on how the records are priortized on UI or results returned by this web service?
http://api.geonames.org/search?q=Moscow&maxRows=10&username=demo

Thanks



]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/5900.page#14387</guid>
				<link>http://forum.geonames.org/gforum/posts/list/5900.page#14387</link>
				<pubDate><![CDATA[Tue, 11 Feb 2014 07:09:02]]> GMT</pubDate>
				<author><![CDATA[ gshockneo]]></author>
			</item>
	</channel>
</rss>