<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Search with searchlang parameter"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Search with searchlang parameter"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Search with searchlang parameter</title>
				<description><![CDATA[ I am using GeoNames API search method to populate a typeahead autocomplete menu for my users when they type in a city input field. Since the input is in a known language (English) I would like the menu to only display names in English.

I am using the name_startsWith parameter as the main search term.

I thought that by passing the searchlang param it would limit the results to names in that language, but that does not seem to be the case. For example, when I call the API here:

http://api.geonames.org/search?country=US&name_startsWith=cam&searchlang=en&isNameRequired=true&lang=en&maxRows=20&orderby=relevance&adminCode1=MA&username=XXXXXXX&featureClass=P&

The second result in the list is "Campifons" which is apparently the Latin for "Springfield".

Is this expected behavior? Am I misinterpreting what the searchlang param does or does it not work in combination with the name_startsWith param?

Any workaround ideas? ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/5626.page#14088</guid>
				<link>http://forum.geonames.org/gforum/posts/list/5626.page#14088</link>
				<pubDate><![CDATA[Sat, 25 Jan 2014 08:13:31]]> GMT</pubDate>
				<author><![CDATA[ sdaniels]]></author>
			</item>
	</channel>
</rss>