<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Country code resolution failures"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Country code resolution failures"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Country code resolution failures</title>
				<description><![CDATA[ Hi,

We are using the country code resolution API to resolve the countries for assets we are tracking and have noticed some issues whereby the asset is clearly in a country (as per the position), but the CountryCode API returns "no country code found".

We are using the CountryCode API via an HTTP request as so:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>http://&lt;DOMAIN&gt;/countryCode?username=&lt;USERNAME&gt;&lat=xxxx&lng=yyyy</pre>
		</div>
Some examples are;
<li> 1 Boulevard de la Croisette, 06400 Cannes, France (43.550513, 7.017444)
<li> Keewatin Region, NU, Canada (60.32364, -94.24824)
<li> Hillesøyvegen, 9110 Sommarøy, Norway (69.625897, 18.035966)

I've also attached a file containing all of the problematic locations with resolved location names we have so far.

Why would this be? Internally do you guys store the data as country polygons and query within them? Would it be possible to tweak the polygons where necessary to fix these? These locations appear to often be costal, as though the country "zones" are slightly clipped.

cheers,

Rob Harwood
Vismo]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4306.page#12557</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4306.page#12557</link>
				<pubDate><![CDATA[Tue, 2 Jul 2013 20:53:55]]> GMT</pubDate>
				<author><![CDATA[ RobTF]]></author>
			</item>
			<item>
				<title>Re:Country code resolution failures</title>
				<description><![CDATA[ Hi Rob,

The Webservice Documentation says >>
'radius (buffer in km for closest country in coastal areas, a positive buffer expands the positiv area whereas a negative buffer reduces it)'

Try with a buffer extension. Your Norway position with a 5km buffer works perfectly >>>
> <a href='http://api.geonames.org/countryCode?lat=69.625897&lng=18.035966&radius=5&username=demo' target='_new' rel="nofollow">http://api.geonames.org/countryCode?lat=69.625897&lng=18.035966&radius=5&username=demo</a>

The same for Cannes. 
As for your Canada position >> It is really offshore, 23km into the Hudson Bay.

Up to you, to decide about the buffer radius...

Cheers,
Urs ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4306.page#12560</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4306.page#12560</link>
				<pubDate><![CDATA[Wed, 3 Jul 2013 07:24:43]]> GMT</pubDate>
				<author><![CDATA[ saphir]]></author>
			</item>
			<item>
				<title>Re:Country code resolution failures</title>
				<description><![CDATA[ Ah thankyou! We were recently made aware of this just before I read your post but that's really useful.

We've found that trying a radius of 1 then upping to 5 on failure seems to work well (I assume this is in km?)

thanks again]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4306.page#12561</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4306.page#12561</link>
				<pubDate><![CDATA[Wed, 3 Jul 2013 12:25:49]]> GMT</pubDate>
				<author><![CDATA[ RobTF]]></author>
			</item>
			<item>
				<title>Re:Country code resolution failures</title>
				<description><![CDATA[ Hi Rob,

Yes it is a km-radius.

I guess it is about cellphones ???

If your Canada position was a real one, then the cellphone was aboard a ship.

My personal experience with cellphones in the Mediterranean on a low sailboat says: At 20km offshore there may be a connection, further away not.
A better cellphone, a higher onshore station, a higher cellphone (on a large ship or an offshore unit) and a special atmospheric situation may extend this distance.

Then the fallback distance should be much larger...

Cheers,
Urs
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4306.page#12565</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4306.page#12565</link>
				<pubDate><![CDATA[Thu, 4 Jul 2013 09:55:00]]> GMT</pubDate>
				<author><![CDATA[ saphir]]></author>
			</item>
	</channel>
</rss>