<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Query more than one feature class"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Query more than one feature class"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Query more than one feature class</title>
				<description><![CDATA[ I was looking at using geonames for my geocoding but I have a question about the feature class. Basically the feature class returns the kind of results, but I want to have more than one feature class:

Great for large states:

    featureClass: "A",  

Great for small places:

    featureClass: "P",

I can't find a way for me to be able to search for both to get the best of both worlds. I tried removing that line entirely, but returns things like airports and such.

Here is my code: http://jsfiddle.net/spadez/nHgMX/2/

  $(function() {
    function log( message ) {
      $( "<div>" ).text( message ).prependTo( "#log" );
      $( "#log" ).scrollTop( 0 );
    }

    $( "#city" ).autocomplete({
      source: function( request, response ) {
        $.ajax({
          url: "http://ws.geonames.org/searchJSON",
          dataType: "jsonp",
       data: {
        featureClass: "P",
        style: "full",
        maxRows: 7,
        name_startsWith: request.term,
        country: "UK"
      },           
          success: function( data ) {
            response( $.map( data.geonames, function( item ) {
              return {
                label: item.name + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName,
                value: item.name
              }
            }));
          }
        });
      },
      minLength: 1,
      select: function( event, ui ) {
        log( ui.item ?
          "Selected: " + ui.item.label :
          "Nothing selected, input was " + this.value);
      },
      open: function() {
        $( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" );
      },
      close: function() {
        $( this ).removeClass( "ui-corner-top" ).addClass( "ui-corner-all" );
      }
    });
  });

My question is, can I search more than one feature class, so I can get results for both small towns and large states.<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre></pre>
		</div>[code]]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4294.page#12520</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4294.page#12520</link>
				<pubDate><![CDATA[Sat, 22 Jun 2013 06:57:06]]> GMT</pubDate>
				<author><![CDATA[ spadez8]]></author>
			</item>
			<item>
				<title>Re:Query more than one feature class</title>
				<description><![CDATA[ the search service supports more than one occurance of the featureCode or featureClass parameter (OR) :
http://www.geonames.org/export/geonames-search.html]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4294.page#12536</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4294.page#12536</link>
				<pubDate><![CDATA[Thu, 27 Jun 2013 11:08:15]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>