<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Sort returned cities by population"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Sort returned cities by population"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Sort returned cities by population</title>
				<description><![CDATA[ Hi,
I have a web crawler, which goes through users of some web service and based on their self-reported adresses tries to determine their location.
I always take the first returned result as the most relevant, but sometimes the results are incorrect.

i.e. for "San Francisco, CA"
http://api.geonames.org/search?q=san+francisco+ca&maxRows=10&username=<USERNAME>
San Francisco in USA is returned (CORRECT)

for "San Francisco"
http://api.geonames.org/search?q=san+francisco&maxRows=10&username=<USERNAME>
San Francisco in Costa Rica is returned (INCORRECT)

if I use countryBias=us, the results for "San Francisco" are CORRECT,
but results for "Paris" are INCORRECT (Paris in USA is returned)
http://api.geonames.org/search?q=paris&countryBias=us&maxRows=10&username=<USERNAME>

If I use countryBias with more countries (countryBias=us+fr) , it does not work
http://api.geonames.org/search?q=san+francisco&countryBias=us+fr&maxRows=10&username=<USERNAME>

What I would like, is to have returned records sorted by population - therefore San Francisco,USA would be first, and also Paris,FR would be first

Is that possible?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4426.page#12790</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4426.page#12790</link>
				<pubDate><![CDATA[Thu, 26 Sep 2013 20:31:40]]> GMT</pubDate>
				<author><![CDATA[ janoskaz]]></author>
			</item>
	</channel>
</rss>