<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Using Boolean on a Parameter Basis"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Using Boolean on a Parameter Basis"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Using Boolean on a Parameter Basis</title>
				<description><![CDATA[ Hi,

I'm stumped as to how I can accomplish the following.

Using the general "http://ws.geonames.org/searchJSON", I need to run a standard query, returning only results that match the adminCode1 value of "WI" or "MN".

So far, I can get results for one state at a time, but not both. I tried setting the operator parameter to "OR", however, this returns oodles of results that don't pertain to the original query.

Therefore, a query for "Rice" with the country parameter set to "US" should return only results from Wisconsin and Minnesota.

Any advice?

Thanks in advance,
Peter]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2008.page#8151</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2008.page#8151</link>
				<pubDate><![CDATA[Wed, 4 Aug 2010 01:25:24]]> GMT</pubDate>
				<author><![CDATA[ petermetzger]]></author>
			</item>
			<item>
				<title>Re:Using Boolean on a Parameter Basis</title>
				<description><![CDATA[ There is no way to get "MN or WI" in a single query.

You may perform a full US query then filter the results to keep only MN and WI :
http://ws.geonames.org/searchJSON?country=US&q=Rice&fcode=PPL

or perform 2 queries then merge results :
http://ws.geonames.org/searchJSON?country=US&q=Rice&fcode=PPL&adminCode1=WI
http://ws.geonames.org/searchJSON?country=US&q=Rice&fcode=PPL&adminCode1=MN]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2008.page#8152</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2008.page#8152</link>
				<pubDate><![CDATA[Wed, 4 Aug 2010 09:46:42]]> GMT</pubDate>
				<author><![CDATA[ geotree]]></author>
			</item>
			<item>
				<title>Re:Using Boolean on a Parameter Basis</title>
				<description><![CDATA[ I will put it in the 'nice-to-have' folder, maybe we have someday time to implement it.

Best

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2008.page#8160</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2008.page#8160</link>
				<pubDate><![CDATA[Wed, 4 Aug 2010 21:24:53]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:Using Boolean on a Parameter Basis</title>
				<description><![CDATA[ That'd be great! It's not a huge deal doing some of the filtration on my end, but it'd definitely be convenient to have implemented on the server-side.

Thanks again,
Peter]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2008.page#8165</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2008.page#8165</link>
				<pubDate><![CDATA[Thu, 5 Aug 2010 21:49:39]]> GMT</pubDate>
				<author><![CDATA[ petermetzger]]></author>
			</item>
	</channel>
</rss>