<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "A strange result"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "A strange result"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>A strange result</title>
				<description><![CDATA[ I got a strange result today doing some geonames queries:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre> curl 'http://ws.geonames.org/countrySubdivision?lat=17.0&lng=113.308333&radius=1&maxRows=10'
&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
&lt;geonames&gt;
&lt;countrySubdivision&gt;
&lt;countryCode/&gt;
&lt;countryName/&gt;
&lt;adminCode1&gt;0Z&lt;/adminCode1&gt;
&lt;adminName1&gt;null.0Z&lt;/adminName1&gt;
&lt;distance&gt;49.595635427441934&lt;/distance&gt;
&lt;/countrySubdivision&gt;
&lt;/geonames&gt;
</pre>
		</div>

No country, but a state code of "0Z"?  It's out in the middle of no-where in the South China Sea, near the Paracel Islands.  If you use the "ocean" query instead of "countrySubdivision", it returns "<name>South China Sea</name>" as expected.

]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2128.page#8623</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2128.page#8623</link>
				<pubDate><![CDATA[Sun, 24 Oct 2010 01:40:38]]> GMT</pubDate>
				<author><![CDATA[ ptomblin]]></author>
			</item>
			<item>
				<title>Re:A strange result</title>
				<description><![CDATA[ Thanks. It has been fixed. There were two bugs in this response. First it should not return a point this far away when asking with a radius of 1km and second it should not return a response with an null country code. Both bugs have been fixed.

The response returned was based on the 'Dido Bank' in the Spratly Islands

http://www.geonames.org/1821200/dido-bank.html
http://en.wikipedia.org/wiki/Spratly_Islands

The US government is using the country code 'PG' for these disputed islands, ISO did not assign a country code to them. This is the reason we have set the country code to 'null' as we don't really know which ISO county code would make sense for these uninhabited islands.

Best

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2128.page#8625</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2128.page#8625</link>
				<pubDate><![CDATA[Mon, 25 Oct 2010 11:14:01]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:A strange result</title>
				<description><![CDATA[ <p></p>

		<cite>marc wrote:</cite><br>
		<blockquote>
The US government is using the country code 'PG' for these disputed islands, ISO did not assign a country code to them.&nbsp;
		</blockquote>

My waypoint generator (http://navaid.com/) started off using DAFIF data, so naturally I used FIPS 10-4 country codes.  Unfortunately  
-the US Government doesn't use FIPS 10-4 for anything any more so they haven't been making new ones as new countries and territories come into being and
- the mapping between ISO 3166-1 and FIPS 10-4 isn't exactly 1:1

(BTW: I know this is a phpBB error and not yours, but the preview function doesn't show the same results as the actual post for quote and list tags.)]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2128.page#8626</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2128.page#8626</link>
				<pubDate><![CDATA[Mon, 25 Oct 2010 13:43:46]]> GMT</pubDate>
				<author><![CDATA[ ptomblin]]></author>
			</item>
	</channel>
</rss>