I got a strange result today doing some geonames queries:
Code:
curl 'http://ws.geonames.org/countrySubdivision?lat=17.0&lng=113.308333&radius=1&maxRows=10'
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<geonames>
<countrySubdivision>
<countryCode/>
<countryName/>
<adminCode1>0Z</adminCode1>
<adminName1>null.0Z</adminName1>
<distance>49.595635427441934</distance>
</countrySubdivision>
</geonames>
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.