<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "API: multiple featureCode parameters"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "API: multiple featureCode parameters"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>API: multiple featureCode parameters</title>
				<description><![CDATA[ Hi, in the search API I would like to provide multiple featureCode (the PCL*)
But when using the autocomplete jQuery API the request issued is in the form :
http://ws.geonames.org/searchJSON?featureCode[]=PCLS&featureCode[]=PCLI&...
what is quite correct according to the HTTP specification but isn't accepted by geonames.
Would you consider supporting this way of passing multiple values to an argument ?
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1955.page#7944</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1955.page#7944</link>
				<pubDate><![CDATA[Mon, 21 Jun 2010 14:24:52]]> GMT</pubDate>
				<author><![CDATA[ drzraf]]></author>
			</item>
			<item>
				<title>Re:API: multiple featureCode parameters</title>
				<description><![CDATA[ You are right : this syntax should work.
@Marc : is it easy to implement ?

If you need to get all countries, use <b>countryInfo</b> webservice :
http://www.geonames.org/export/web-services.html#countryInfo]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1955.page#7951</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1955.page#7951</link>
				<pubDate><![CDATA[Wed, 23 Jun 2010 21:56:08]]> GMT</pubDate>
				<author><![CDATA[ geotree]]></author>
			</item>
			<item>
				<title>Re:API: multiple featureCode parameters</title>
				<description><![CDATA[ are you sure this is correct? I can't find any reference to this notation with square brackes [] except for one or two php examples. The service is using java servlet and they don't seem to support this notation.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1955.page#7952</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1955.page#7952</link>
				<pubDate><![CDATA[Thu, 24 Jun 2010 06:20:08]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:API: multiple featureCode parameters</title>
				<description><![CDATA[ That's right, the syntax to pass the parameter multiple-values to the servers is specified by the HTML spec : appending [] to the field "name".
(http://www.w3.org/TR/html401/interact/forms.html#h-17.2.1)

How the server should handle this isn't specified as it just depends on the server-side language.
AFAIK the HTTP spec, doesn't talk about that (it's probably outside its scope unlike I previously asserted)

If its hard (or not wanted) to implement to support on the java servlet side, I will ask on the jQuery side for an option to support the "non-HTML" notation.

Thanks for the answers.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1955.page#7953</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1955.page#7953</link>
				<pubDate><![CDATA[Thu, 24 Jun 2010 09:34:06]]> GMT</pubDate>
				<author><![CDATA[ drzraf]]></author>
			</item>
			<item>
				<title>Re:API: multiple featureCode parameters</title>
				<description><![CDATA[ What about a RegExp syntax using "|" ?
http://ws.geonames.org/searchJSON?featureCode=PCLS|PCLI
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1955.page#7955</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1955.page#7955</link>
				<pubDate><![CDATA[Thu, 24 Jun 2010 10:29:07]]> GMT</pubDate>
				<author><![CDATA[ geotree]]></author>
			</item>
			<item>
				<title>Re:API: multiple featureCode parameters</title>
				<description><![CDATA[ drzraf: I don't find any reference to '[]' on the page you link to.

The service already supports multiple parameters:
http://ws.geonames.org/search?q=london&maxRows=10&featureCode=PPLC&featureCode=PPL

Just the brackets behind the parametername are not supported.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1955.page#7959</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1955.page#7959</link>
				<pubDate><![CDATA[Fri, 25 Jun 2010 06:49:36]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>