<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Different results with XML and JSON"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Different results with XML and JSON"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Different results with XML and JSON</title>
				<description><![CDATA[ hi,

a given search returns different results when returned as XML or JSON.
What's wrong?

For instance:

<a href='http://ws.geonames.org/search?name_startsWith=roch&country=fr&featureClass=P' target='_new' rel="nofollow">http://ws.geonames.org/search?name_startsWith=roch&country=fr&featureClass=P</a>

returns as a first result

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>&lt;geoname&gt;
&lt;name&gt;Rochefort-des-Vignes&lt;/name&gt;
&lt;lat&gt;46.7833333&lt;/lat&gt;
&lt;lng&gt;4.85&lt;/lng&gt;
&lt;geonameId&gt;3027484&lt;/geonameId&gt;
&lt;countryCode&gt;FR&lt;/countryCode&gt;
&lt;countryName&gt;France&lt;/countryName&gt;
&lt;fcl&gt;P&lt;/fcl&gt;
&lt;fcode&gt;PPL&lt;/fcode&gt;
&lt;/geoname&gt;</pre>
		</div>

while

<a href='http://ws.geonames.org/search?name_startsWith=roch&country=fr&featureClass=P&type=json' target='_new' rel="nofollow">http://ws.geonames.org/search?name_startsWith=roch&country=fr&featureClass=P&type=json</a>

returns (same geonamesID but different data)

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>{u'fcode': u'PPL', u'name': u'Chalon-sur-Sa\xf4ne', u'countryCode': u'FR',
u'geonameId': 3027484, u'fclName': u'city, village,...', u'adminCode1': u'A1',
u'countryName': u'France', u'lat': 46.783333300000002, u'lng': 4.8499999999999996, u'adminName1': u'Bourgogne',
u'fcl': u'P', u'fcodeName': u'populated place', u'population': 47251}
</pre>
		</div>

thanks
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1633.page#6749</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1633.page#6749</link>
				<pubDate><![CDATA[Thu, 26 Nov 2009 13:01:53]]> GMT</pubDate>
				<author><![CDATA[ julj]]></author>
			</item>
			<item>
				<title>Re:Different results with XML and JSON</title>
				<description><![CDATA[ Thanks for reporting the inconsistency. It has been fixed.
The place was the same in both service. The XML service has returned the alternatename that triggered the startsWith rule in the name field whereas the json service returned the main name. Both services now return the name that corresponds to the startsWith search.


Best

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1633.page#6754</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1633.page#6754</link>
				<pubDate><![CDATA[Fri, 27 Nov 2009 06:43:36]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>